• heatcliff

    (@heatcliff)


    I was wondering how I could make sure the posts’ category/categories show up with the post.

    I can’t seem to find an option where I can turn this on. To be clear, I do not wish to display the categories in the top menu or in a side bar, just below the posts themselves, so that people can see what category is in, and click on it to see more of the same category.

Viewing 2 replies - 1 through 2 (of 2 total)
  • MichaelH

    (@michaelh)

    Look at the WordPress Default theme’s wp-content/themes/default/index.php and see how it uses the_category.

    wp-content\themes\constructor\layouts\default.php

    <div class="links right">
    <?php the_date() ?> |
    <em>分类: <?php the_category(', '); ?>| //  here</em>
    <?php get_constructor_author('', ' |') ?>

    wp-content\themes\constructor\single.php

    <?php get_constructor_author('', ' |') ?>
    <em>分类: <?php the_category(', '); ?>|</em>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Categories with posts’ is closed to new replies.