Skip to content
WJunction - Webmaster Forum

how to make wordpress category clickable?

Status
Not open for further replies.
Hello I have this code on my wordpress
Code:
<abbr class="published" title="<?php the_time('c') ?>"><?php printf( __('Posted on %s', 'arras'), get_the_time(get_option('date_format')) ) ?></abbr> | <span class="entry-cat"><?php $terms = get_the_terms( get_the_ID(), $taxonomy ); if ( $terms != '' && !is_wp_error($terms) ) { $terms = array_values($terms); if (arras_get_option('news_cat') && isset($terms[1])) echo $terms[1]->name; else echo $terms[0]->name;}?>

Output: POSTED ON JULY 14, 2013 | CategoryTitle
I'm wondering how do I make the CategoryTitle clickable or have links to redirect to it category page?
 

3 comments

Status
Not open for further replies.

About the author

kaizer01
Senior Member · Joined
N.E.E.T. Gaming, Blogging, Girls
1,131
Messages
172
Reactions
63
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom