Getting custom post type archive

Hello everyone.
I use this plugin for my site:

the problem is I can’t get archive for all downloads. I checked the plugin source code and they defined their specific post type using this code:

$labels = array(
‘name’ => __(‘Downloads’, ‘wpdmpro’),
‘singular_name’ => __(‘File’, ‘wpdmpro’),
‘add_new’ => __(‘Add New’, ‘wpdmpro’),
‘add_new_item’ => __(‘Add New File’, ‘wpdmpro’),
‘edit_item’ => __(‘Edit File’, ‘wpdmpro’),
‘new_item’ => __(‘New File’, ‘wpdmpro’),
‘all_items’ => __(‘All Files’, ‘wpdmpro’),
‘view_item’ => __(‘View File’, ‘wpdmpro’),
‘search_items’ => __(‘Search Files’, ‘wpdmpro’),
‘not_found’ => __(‘No File Found’, ‘wpdmpro’),
‘not_found_in_trash’ => __(‘No Files found in Trash’, ‘wpdmpro’),
‘parent_item_colon’ => ‘’,
‘menu_name’ => __(‘Downloads’, ‘wpdmpro’)
);

    $args = array(
        'labels' => $labels,
        'public' => true,
        'publicly_queryable' => get_option('__wpdm_publicly_queryable', 1),
        'show_ui' => true,
        'show_in_menu' => true,
        'show_in_nav_menus' => true,
        'query_var' => true,
        'rewrite' => array('slug' => 'download', 'with_front' => (bool)get_option('__wpdm_purl_with_front', false)), //get_option('__wpdm_purl_base','download')
        'capability_type' => 'post',
        'has_archive' => (get_option('__wpdm_has_archive', false)==false?false:sanitize_title(get_option('__wpdm_archive_page_slug', 'all-downloads'))),
        'hierarchical' => false,
        'taxonomies' => array('post_tag'),
        'menu_icon' => 'dashicons-download',
        'exclude_from_search' => (bool)get_option('__wpdm_exclude_from_search', false),
        'supports' => array('title', 'editor', 'publicize', 'excerpt', 'custom-fields', 'thumbnail', 'tags', 'comments','author')
    );

register_post_type(‘wpdmpro’, $args);

So my question is how can I get all download posts in one place ?

thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.