Hide/Filter Specific Categories shown on the main page?

  • Author
  • #505810


    Is there a way to hide/filter posts (say by category) that are shown on the main/default page or perhaps have the main/default page redirect me to a specific category archive by default?

    I know I can set public and private but I want to only show posts of the category type “Posts” that I have created on the main page, but still get to other categories specifically through the category archive widget.

    I know I could edit the index.php on a self-hosted setup to do so but is something like this possible via wordpress.com?

    Specifically I am using Coraline (and/or Twenty Ten) theme with the new Gallery and Aside functionality and want to hide posts that are Gallery Categories (instead getting to a listing of them from a custom Gallery menu item which works beautifully).

    Closet I have come is setting up a static page and then having the “home” link go to the posts archive via a custom menu item, but I would rather not have the static page.

    I am thinking its not possible unless I am overlooking something simple.

    The blog I need help with is ottawarambler.wordpress.com.




    Upon further reading it isn’t possible (currently) on wordpress.com hosted blogs:


    Perhaps my best bet would be requesting a modified [archives] shortcode with a category filter option, but such a best doesn’t exist yet, though the feature has been requested.



    Moderator Emeritus

    I don’t know which theme you are using (nor am I positive that you are a wp.COM blogger without a link to your blog) but instead of a static page, could you not use a custom menu widget in your sidebar? Or rather 2 custom menu widgets in your sidebar?



    I didn’t list my blog as it is still private as I am developing it.

    The themes I am using are in the first post (Coraline or Twenty Ten). I am alternating back and forth between them but both basically sport the same features. Though I am leaning more toward Coraline at this moment.

    Specifically posts in those two themes both have special post formatting when the post is set to an “aside” or “gallery” category…. As mentioned in the first post, I know I can easily do category filtering via PHP editing on a self-hosted blog (modifing “The Loop”), but I am specifically asking about the free wp.com blogs.

    Both of these themes support custom menus (great feature) and as I mentioned, I do have a menu option already, it works fine to get me to a gallery category view when clicked, however I wanted the main index page to filter out certain post categories (specifically “Gallery” categories) as I don’t want the “Gallery” category posts to show on the main blog when you first hit the site. However from further reading I found that this can’t be done.

    Since I don’t want the user to see a mixture of gallery and regular posts on the main page, the best I can come up with is changing the first page to be static page and then have the user click a “posts” category menu item that goes to the post category archive keep the menu item I have for gallery category. Which is what I think you are suggesting (though keeping the default index view). I had already thought of that but while this will work I was kinda hoping to have the main index page show only certain categories to save the user a click to see posts when first hitting the site.

    Moreover, ideally, I only want to cordon off “gallery” category posts, I want to list regular and aside posts together (the formatting of an aside is moot if its not between regular posts after all).

    I think I can use set theory and create an “aside and posts” category and tag regular posts under two categories as both “posts” and “asides and posts” and asides posts as “asides” and “asides and posts” and then display the “asides and posts” category to effectively get a list of both categories and have the differentiated formatting but I haven’t tried this.

    I also mention the archive shortcode, only because I could create a static front page but use that shortcode on it to get a dynamic list of posts, however it doesn’t support category filtering, just date filtering->though it, or another shortcode looks like my best chance to get category filtering though.

The topic ‘Hide/Filter Specific Categories shown on the main page?’ is closed to new replies.