Support » Fixing WordPress » Help Understanding Category Structure Code Help

  • Hi,

    I’m trying to see how categories work together, and wondered if you could see if i’m doing this right.

    I’m creating a portfolio website and need the structure like this:

    (My permalink structure is “/%category%/%postname%/”

    Parent Category:
    Child Category:
    Single Post Entry

    Child Categories can not be hard coded, e.g. category_photography.php

    So I need code that says something like:

    If Category is a “Parent” then show this code…. else…. Show the children code….

    All this is within category.php….

    Hope someone can assist.

  • The topic ‘Help Understanding Category Structure Code Help’ is closed to new replies.