I have a problem with the archive page a category of a custom post type. I have installed a plug-in (WP Download Mananger) that created a custom post called “wpdmpro” (post_type = wpdmpro) with a custom taxonomy slug “download-category”.
The issue is, if I open a custom category, eg: http://see-private/download-category/my-category/ the page show
Sorry, no result found for this reference
Now, for fix this issue I have addend in my “Enfold-child” a file called taxonomy-wpdmcategory.php whit this code
global $wp_query;
$paged = 1;if ( get_query_var(‘paged’) ) {
$paged = get_query_var(‘paged’);
} else if ( get_query_var(‘page’) ) {
$paged = get_query_var(‘page’);
}$wp_query = new WP_Query(array(
‘posts_per_page’ => 10,
‘paged’ => $paged,
‘offset’ => 0,
‘category’ => ”,
‘wpdmcategory’ => get_query_var(‘wpdmcategory’),
‘orderby’ => ‘post_title’,
‘order’ => ‘DESC’,
‘post_type’ => ‘wpdmpro’,
‘post_status’ => ‘publish’
));
require dirname(__DIR__) . ‘/enfold/archive.php’;
Now archive page show posts, but pagination not work, only the first page show posts, if I open page 2: http://see-private/download-category/my-category/page/2/ i see:
Error 404 – Page not found
The questions
Enfold supports/works with custom post?
You think it is a Enfold problem or plug-in problem (or both)?
Hi AcSoftware!
I would try contacting the plugin author.
I’ve used this plugin before, https://wordpress.org/plugins/custom-post-type-ui/, for creating custom post types and have not had any issues with it.
Regards,
Elliott