• This is what I’d like to do on my blog, I just haven’t figured out a way to do it yet. It’s a news blog with some news stories and some opinion stories. On my index template, I’d like to have a different template for the news stories than the opinion stories. I’ll differentiate between the two by categories, but I need to use conditional tags or something to give the news stories a different look on the main index template than the opinion stories. Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have a look at the Conditional_Tags page in the Codex.

    in_category() in particular, seems like it would be useful.

    It’ll fit nicely in The_Loop.

    rowan

    (@rokwan)

    Is there any kind of multiple-template plugin that lets you select from multiple templates with a given theme, without programming?

    Thanks

    moshu

    (@moshu)

    For the single post view? If based on category you can use this:
    https://guff.szub.net/2005/07/21/post-templates-by-category/

    rowan

    (@rokwan)

    That’s a really cool plug-in, especially for a blog. I’ll try it for my blog, but I’m not sure it’ll work for my CMS (onlinebibletalk.com — site is in drupal, but i want to move it to wordpress)

    Here’s the thing: if my website has 3 columns, my main center column has a limited width. that’s not good if i have big photos, or if i want to publish a landing page (onlinebibletalk.com/ChristianDating) with no sidebars. i basically hardcoded that landing page.

    I need to build a WP plugin that lets users basically select a template from a dropdown menu when writing a page or post. Default template, No-right template, No Sidebars template, etc.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating multiple post templates’ is closed to new replies.