Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #736

    I would like to know how can I create a special page with a blog template (Blog Overview)

    that shows only posts from a specific category.

    meaning. I need to maybe duplicate the blog template and create a new template based on the blog template

    that shows only posts from a specific category. any idea?

    please help

    Leon

    #32722

    You could duplicate template_blog.php. Change the template name to something other than “Blog Overview” and then find the query string:

    $query_string = "cat=".$negative_cats."&paged=$paged";

    change it to this:

    $query_string = "cat=10&paged=$paged";

    where 10 is the category ID of the category you’d like to display.

    #32723

    thanks, it worked

    but i see the specific post – in the Blog overview blog page as well…

    what do i have to do to see it only in the new blog page i created.

    Leon.

    #32724

    Hey!

    The only option to remove this duplicate category is to exclude this separate blog page category from the original Blog page?

    Regards,

    James

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Show blog page with a specific category’ is closed to new replies.