• Resolved mehdi.gpr

    (@mehdigpr)


    Hi,

    I want to create new theme specific for download_monitor and

    I want to show only download_monitor posts to as default post.

    how to change default wordpress post_type to display only download_monitor posts??

    I tried to do this with the code below :

    $args = array('post_type' => 'dlm_download');
    query_posts( $args );

    this code display only download_monitor posts, but when I click a post to see the content, showing 404 not found error.

    Can anyone provide a comprehensive solution ?

    • This topic was modified 6 years, 7 months ago by mehdi.gpr.
    • This topic was modified 6 years, 7 months ago by mehdi.gpr.
    • This topic was modified 6 years, 7 months ago by mehdi.gpr.
Viewing 1 replies (of 1 total)
  • Hey @mehdigpr,

    Download Monitor downloads have no single page so this is why the page 404’s. If this is something you want to build in a theme you are going to distribute, you will have to custom code a solution to this.

    Kind Regards,

    Barry Kooij

Viewing 1 replies (of 1 total)
  • The topic ‘Change wordpress Default post_type to display download_monitor posts’ is closed to new replies.