Having recently installed a theme update on an inherited premium theme, I am facing a minor irritation that I do not have the coding knowledge to solve.
The theme displays a link to RSS feeds for archive and category pages but for some reason the new php file breaks the link - it displays correctly on the page but the hyperlink remains dead. I kept a copy of the old theme files so I am able to at least provide the differences in the code snippets.
(If I add both to the file, although the page obviously displays the links twice, one of them will work, but either one on its own results in no clickable link to the feed).
Here is the code from the old theme file:
<h3><span class="fl">Archive | <?php echo single_cat_title(); ?></span> <span class="fr catrss"><?php $cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; echo '<a href="'; get_category_rss_link(true, $cat, ''); echo '">RSS feed for this section</a>'; ?></span></h3>
and here is what I have in the new one:
<h3><span class="fl"><?php _e('Archive', 'woothemes'); ?> | <?php echo single_cat_title(); ?></span> <span class="fr catrss"><?php $cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; ?><a href="<?php get_category_rss_link(true, $cat, ''); ?>"><?php _e('RSS feed for this section', 'woothemes'); ?></a></span></h3>
I am afraid that as I do not have a membership to the theme provider's site I cannot get help from that avenue without paying a costly fee and as I'm not a customer of theirs I'm reluctant to pay so much in order to ask what is probably a simple question.
Thanks in advance for any help that can be offered here.
EDIT: When looking at the page source in FF the output appears to be correct yet still the link is not functioning. Here is the relevant output as seen in the page source:
<h3>
<span class="fl">Archive | Wordpress</span>
<span class="fr catrss">
<a href="http://www.thecaymanhost.com/category/wordpress/feed">
RSS feed for this section </a>
</span>
As you can see the feed is valid and the html would appear to be correct.
href
part of the<a>
tag is empty, or that the page it links to is empty?