• Resolved chris2006

    (@chris2006)


    Hey,

    I’m currently using

    <?php wp_list_categories(‘orderby=name&title_li=’); ?>

    To display my category listings, could anyone show me the way to incorporate that with the add_link_attr attribute to append rel=”NoFollow” to the category links.

    Thankyou

Viewing 5 replies - 1 through 5 (of 5 total)
  • Kafkaesqui

    (@kafkaesqui)

    <?php add_link_attr('wp_list_categories', 'orderby=name&title_li=', 'rel="nofollow"'); ?>
    Thread Starter chris2006

    (@chris2006)

    Thanks for the quick reply but i’m getting some errors with that snippet:

    Fatal error: Call to undefined function: add_link_attr() in /home/blah/public_html/wp-content/themes/blah/sidebar.php on line 65

    whooami

    (@whooami)

    do you actually have the plugin installed and activated?

    thats not a default WP function, you need Kaf’s plugin

    Thread Starter chris2006

    (@chris2006)

    Boy is my face red ??

    Thanks for the great help guys ??

    Kafkaesqui

    (@kafkaesqui)

    :D

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using add_link_attr with wp_list_categories’ is closed to new replies.