Index.php Confusion (2 posts)

  1. Anonymous
    Posted 11 years ago #

    I'm new to WordPress - and pretty green with PHP and CSS - and am having trouble figuring out how to do something.
    If you check out http://www.completedigitalphotography.com, you can see where I've gotten so far (this only took about 8 hours, WordPress is amazing!). Right now, when the user clicks on Read More, the page reloads with the approrpriate query to display the full record. Unfortunately, I need to display a slightly different layout for one particular category.
    I was hoping to create a PHP conditional that would load some different includes for my layout, depending on the category, but I can't figure out where it goes.
    I think that, what it comes down to, is I don't understand how the main index.php page knows whether it's displaying a single entry or a whole bunch of entries. I presume it as something to do with that initial if ($posts) conditional.
    Can anyone help? (For that matter, can anyone understand what it is I'm talking about?)

  2. moshu
    Posted 11 years ago #

    made a search for "category css" - got this

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.