WordPress.org

Support

Support » How-To and Troubleshooting » Read More of Selected Category

Read More of Selected Category

  • misslovelylara
    Member

    @misslovelylara

    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!

Viewing 1 replies (of 1 total)
  • <?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.

Viewing 1 replies (of 1 total)
  • The topic ‘Read More of Selected Category’ is closed to new replies.