• Hey there,
    I am pretty new to WP and am impressed with what I can do ‘out of the box’. I am alos a complete PHP noob, but can follow what the different WP tags do…
    What I am looking to do is have a different page style applied to some single post pages, pages that will be ‘static’. I will have a set of entries that I will use as static pages with a category ‘static’. Currently the ‘static’ category is hidden from the blog and list of categories.
    I guess a different template is called for for this set of ‘static’ entries. I can set up the new template page, but how do I call it for the ‘static’ category?
    I have seen several topics here in the forum kinda covering what I am looking to do but they go just a bit over my head. And there seem to be several different way to handle this issue.
    Thanks for any help, advice, anything…
    spick

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try doing this: https://www.scriptygoddess.com/archives/005140.php
    And apply filters to the loop itself. There’s a post somewhere on thie forum on how to do this.

    Try doing this: https://www.scriptygoddess.com/archives/005140.php
    And apply filters to the loop itself. There’s a post somewhere on thie forum on how to do this.

    Thread Starter spick

    (@spick)

    Yes I have seen that. I have tried that out and it adds content to a single post page which might be handy, but I would actually like to have single post pages on a seperate template, one that would have a slightly different look than the index page. Plus I only want to use that template for certain posts, or posts of one category.

    As mentioned, create a copy of index.php and modify it to be your individual page.
    If you’re using permalink pointing in .htaccess (generated on the permalinks option page), change the .htaccess entry for individual items to point to your individual.php page rather than index.php. That’s the only change you need to make.

    Thread Starter spick

    (@spick)

    Thanks for all the replies.
    I tried to go with TG’s advice as I have been having trouble with permalinks (error 500) and it seems the quick and dirty way to handle it as I have a deadline to meet. ?? I’m also fairly handy with CSS.
    BUT, it no workee TG, it calls the static.css file for the index.php page too. I entered the catID but no luck.
    Thanks guys.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Single Post Pages’ is closed to new replies.