Support » Plugins and Hacks » removing hyperlink in wp_list_categories for RSS feed

removing hyperlink in wp_list_categories for RSS feed

  • Hello,

    I am currently using:

    <?php wp_list_authors('exclude_admin=0&show_fullname=1&hide_empty=1&feed_image='.get_bloginfo('template_url').'/images/rss.gif&feed=XML'); ?>


    <?php wp_list_categories('title_li=&orderby=id&exclude=1,5,6,19,20,21,22&hide_empty=0&feed_image='.get_bloginfo('template_url').'/images/rss.gif&feed=XML'); ?>

    To create a dynamic RSS page that lists all of the ways people can subscribe to feeds from a newspaper website.

    My question is, is it possible to remove the link on the category name and author name that heads back to an archive page of those posts? I only want the RSS feed (which is given by the rss.gif graphic) but if you click on the category name, or the authors name, you don’t get the RSS feed, you get a list back on my site of all the posts that are in that category or by that author.

    There doesn’t seem to be an argument in the codex to remove the link when using wp_list_categories or wp_list_authors.

Viewing 1 replies (of 1 total)
  • Perhaps an str_replace, with a regular expression for the search…in order to grab the <a href="">*</a> and then replace it with just the *?

    Not too sure how to use regular expressions nor how to formulate that into an str_replace with arguments.


Viewing 1 replies (of 1 total)
  • The topic ‘removing hyperlink in wp_list_categories for RSS feed’ is closed to new replies.