• Hello and thanks for the help in advanced.

    My aim here is to try and have one page set up to render all post from type. I think it’s a bit like the single page file, but not for a singular post.

    for example.
    https://localhost/site/case-study
    https://localhost/site/news

    I would like a page to detect which post type i am trying to use and act accordingly and get all posts for that type.

    WP_Query( array(
    ‘orderby’ => ‘post_date’,
    ‘order’ => ‘DESC’,
    ‘post_type’ => get_post_type(),
    ‘post_status’ => ‘publish’,
    ‘suppress_filters’ => true
    ) );

  • The topic ‘Send all post types to single page.’ is closed to new replies.