WordPress.org

Forums

Get a posts category, but with custom title (1 post)

  1. Arnii
    Member
    Posted 6 years ago #

    Hi WP users!

    I'm trying to do something I thought was really simple, but I can't figure it out...

    I'm building a kind of portfolio site for a client.

    In every single post, I want to give the user the possibility to click on a link called "Related projects". The link should just take the user back to the post's category...

    I can of course use <?php the_category(' '); ?> but it returns the name of the category. What I want is like;

    Related projects

    Hope it makes sense...

    Any help is really, really appriciated.

    Arnii

Topic Closed

This topic has been closed to new replies.

About this Topic