WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] static page for every category?? (5 posts)

  1. ginko100
    Member
    Posted 5 years ago #

    Hello everybody,

    would you be so kind to explain me how to:
    set up a static page for every category ?

    i want to write an introduction to every category and then have users to click on articles links in the menu.

    hope you're able to help me.

  2. ginko100
    Member
    Posted 5 years ago #

    please let me know if my question isn't clear

  3. MichaelH
    Member
    Posted 5 years ago #

    Making use of WordPress' Template Hierarchy it is very easy to create a Category Template and use that:

    Example to follow uses the WordPress Default Theme:

    Copy wp-content/themes/default/index.php to wp-content/themes/default/category.php

    In category.php change:

    <?php if (have_posts()) : ?>

    to

    <strong><?php single_cat_title('Currently viewing: '); ?>
    </strong>: <?php echo category_description(); ?>
    
    <?php if (have_posts()) : ?>
  4. MichaelH
    Member
    Posted 5 years ago #

    Note if you have child categories, you may want to install Use Parent Category Template plugin.

  5. ginko100
    Member
    Posted 5 years ago #

    thank you MichaelH
    have a nice day :)

Topic Closed

This topic has been closed to new replies.

About this Topic