• I have 18 different departments (can be categories or pages) which have a lot of different hard-coded text. Each requires a section containing posts updated by department staff. The solution of putting text before the category post:

    <?php if (is_category('Category A')) : ?>
    <p>This is the text to describe category A</p>
    <?php elseif (is_category('Category B')) : ?>
    <?php endif; ?>

    would result in a massive category template file. Perhaps the fixed text could be put in pages and pulled into the category page when the name matched the category. Any help gratefully received.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple categories require lots of hard-coded text’ is closed to new replies.