Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter toredge

    (@toredge)

    Here’s an example of the code I’m trying to twist into shape for this, perhaps someone can see better what I’m trying to get at (obviously the argument here does not work):

    <?php if ( in_category('21') ): ?>
    Rating:  <?php the_category('child_of=59'); ?>
    <?php endif; ?>

    Category 21 is the category for “Movie Reviews” and Category 59 is “Ratings”. If the post has been assigned to Movie Reviews, it will then execute the code to retrieve the specific category info I want to display for Ratings and so on. It will show “Rating: <child cat>”, etc.

Viewing 1 replies (of 1 total)