Results 1 to 2 of 2

Thread: small bug in feed url found

  1. #1
    Thread Starter
    Harry567's Avatar
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    small bug in feed url found

    When checking my google crawling stats today i noticed lots of 404 errors which resulted from crawling non existing feed urls. The problem is in the archive-default.php line 25

    <div id="catrss"><a href="<?php get_category_link($cat) ?>feed/"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" width="16" height="16" alt="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" title="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" /></a></div>
    If you have more than one page in a category this results in urls like yourdomain.com/category/category1/page2/feed/
    yourdomain.com/category/category1/page3/feed/
    yourdomain.com/category/category1/page4/feed/
    etc. which don`t exist.

    so i changed the code into the following.

    <?php if(is_category() && !is_paged()) { ?>
    <div id="catrss"><a href="<?php get_category_link($cat) ?>feed/"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" width="16" height="16" alt="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" title="<?php single_cat_title(); ?> <?php _e('RSS Feed', 'cp') ?>" /></a></div>
    <?php } ?>

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,697
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Where is the rss feed?
    By rtibbs4 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: February 17th, 2011, 03:07 PM
  2. Feed rss
    By anselmo in forum Report ClassiPress Bugs
    Replies: 18
    Last Post: June 7th, 2010, 03:35 AM
  3. Multi-feed RSS
    By dunkele in forum Help Using ClassiPress
    Replies: 2
    Last Post: May 13th, 2010, 01:22 PM
  4. Feed Question
    By theadman in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 11th, 2010, 10:10 AM