How to only show specific categories on blog page?

  • Author
    Posts
  • #39486

    I’m wondering if you could help me figure this out before I go crazy.

    I have the latest version of Parabola on a fresh WordPress 4.6.1 install and I’m trying to make my blog page (which I created assigning the Blog template to) display only posts from certain categories.

    I searched on Google and found a lot of examples for excluding certain categories by placing code in the functions.php file but from the get-go that’s an issue because in Parabola, the functions.php file is basically a big collection of different files so there was no end ?> to use to post the code to. And I tried in a lot of the includes in there. None worked.

    But more than that, the issue is that I have so many categories being as I am making my site bilingual so one category is actually 2 wordpress categories… I would rather use a code that tells the blog to only display categories such and such instead of having a code that tells the blog to exclude 50 000 categories.

    I know this can be done, but I just can’t figure out what file(s) would need editing to do that and what would be the best code to achieve that?

    Thanks a million.
    Jacynthe

    #39503
    Zed
    Cryout Creations mastermind

    The blog page template is designed to be used just for what its name says – a blog page replacement that lists posts from ALL categories. If you want to display categories separately then you have no need for this page template – simply link individually to each of the categories you want directly from your menu.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #39507

    Hi Zed.

    Thank you for your reply. The problem is that I would want the Blog page to show content from categories Blog, Fitness Journey, Reviews and Traveling, while the submenus will let you see posts from just one specific category say like Fitness Journey.

    Even though Fitness Journey, Reviews and Traveling are children categories of the Blog category, if I link the Blog menu to category Blog, it does not show the children categories post and only show the posts in category Blog. So that doesn’t work.

    Thank you for your help and I really do love that theme a lot! I’m just finicky with what I want. lol

    Jacynthe

    #39717
    Zed
    Cryout Creations mastermind

    You may need to look for a plugin that lets you pick which categories of posts you can list in a certain place (like in a page).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to only show specific categories on blog page?’ is closed to new replies.