Template not found overriding single page's theme (2 posts)

  1. cdolan92
    Posted 3 years ago #


    I think I've got a somewhat uncommon issue. My wordpress site uses a custom theme, but I wanted to add a blog alongside that, without using multisite because my host charges 3x the amount for such a feature.

    What I found was the ability to override an individual page's theme using a plugin, called Page Theme (Click for theme home page).

    This worked great - until I tried to load posts of a specific category. I have a new category with slug blog-posts, cat=14, which are the only ones I want to show up on the page.

    I set my site's default theme back to my Custom Theme, then overrode the Blog page to be the twentytwelve theme. I then set the page template to a php file that queries for my blog posts (following instructions similar to these

    However, all of the formatting is lost.

    If I go to my site's settings, Reading > Static Page > and then select the Blog page for Posts, the formatting is back, but its showing EVERY post.

    I realized the templates I can select, because I have my Custom Theme set to default, are only those in my /themes/CustomTheme/.. folder. I also learned that when you select the static posts page, it will look up the index.php for that theme (in this case, twentytwelves index, which looks great!)... But I'm not sure how to QUERY for the posts I would like, while maintaining the TwentyTwelve theme format.

    Any guidance is very much appreciated. 4 hours spent on this and I'm just where I started :(


  2. Rami
    Posted 3 years ago #


    Showing specific categories are available by default on WordPress sites by going to:


    More on WordPress categories here

    Note: You may have to update permalinks before these links appear properly on your site.
    Here's how to do that. (very easy)

    Additionally, you can create menu items in Appearance -> Menus, so that you can add a direct link to that category in your menus.

    More on WordPress menus here

Topic Closed

This topic has been closed to new replies.

About this Topic