WordPress.org

Ready to get started?Download WordPress

Forums

Read More of Selected Category (2 posts)

  1. misslovelylara
    Member
    Posted 9 years ago #

    All I want to do is link the category text in the loop. So, I want it to output:

    Read more from General.

    What is the php code to put into my template for this? Thanks so much!

  2. iand
    Member
    Posted 9 years ago #

    <?php the_category() ?> outputs the category of the current post, so you want something like
    Read more from <?php the_category(',') ?>
    (the ',' will place a comma between multiple categories.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags