Support » How-To and Troubleshooting » [Resolved] Code for Category Links
8 years, 6 months ago
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.
Why the usual Template_Tags won’t work for you?
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.