WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Code for Category Links

[Resolved] Code for Category Links

  • Can someone please tell me what the code is to make some category titles on my page (which are blocks) into links so that when the user clicks on the title for a category block, it takes you to the full category listing of posts.

    Thx for any help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why the usual Template_Tags won’t work for you?
    Template_Tags#Category_tags
    hint: wp_list_categories

    Hi Moshu.. thx for your reply .. What I have is a theme that displays category blocks. It is this line in the catgory-blocks.php (from the includes folder of the theme) I wish to change :

    // Show the post and its contents ?>
    <div class=”post <?php echo $odd_category; ?>”>
    <h2 class=”section-header”><?php echo $c_name; ?></h2>

    Where I would like the $c_name to be a link instead of just the usual title displayed above a block.

    How can I do this? Using template_tags?

    Thx for your help

    Without knowing which teme are we talking about (and a link to it) it is useless to ask questions related to specific code.

    Thx for your help I have found a way to do it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Code for Category Links’ is closed to new replies.