Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 :(

Charlie

share|improve this question
1  
Not sure I understood that all, but given the set up you had originally, why not just create a different template for that specific page and use WP_Query to pull the posts you want? It can look entirely different. You can call a different header, footer, etc. –  Andrew Bartel May 16 '13 at 2:03
    
I think that might be a way to go - better yet, how can I call a file that rests in another Theme?? If I knew how to do that properly I'd most likely be on my way. For the site, check the following link. As you can see all my posts are pulled, and its using the Template I'd like it to (see footer text), but formatting is lost :: sequoiawaste.staging.wpengine.com/blog –  CDD May 16 '13 at 2:08
    
Sorry if I'm missing something. But why does it need to reside in another theme? It can look completely, truly different from your base site. If you do need it to reside elsewhere I can provide an answer I just wanted to make sure it was necessary. –  Andrew Bartel May 16 '13 at 2:45
    
well its not really 'necessary', but I'd like to not have to worry about updating files/child themes, that kind of stuff. I think it would just be easier going forward. I literally have two very independent themes, I'm just calling them uniquely to a Blog page. Is this a totally stupid way of doing things? Plus, this way I get to take advantage of Widgets, Layouts, Appearance - stuff I cant use in my custom theme because its so heavily customized. –  CDD May 16 '13 at 2:50
    
Well, you do have switch_theme() at your disposal. Have you tried using that? codex.wordpress.org/Function_Reference/switch_theme –  Andrew Bartel May 16 '13 at 3:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.