removing hyperlink in wp_list_categories for RSS feed (2 posts)

  1. Paul Wright
    Posted 6 years ago #


    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.

  2. Paul Wright
    Posted 6 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Topic