Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

Breadcrumbs plugins always show first post


  #1  
Old Mar 28, 2009, 11:49 AM
tikdi
 
7 posts · Feb 2009
Hi,
I tried using Breadcrumbs ( 2 different plugins) by inserting the relevant code in index.php. (Got the exact position from this forum, thanks!)

Now,
The Breadcrumbs menu shows perfectly, but the problem is it always shows the 'last' post in any post.

I managed to find the reason for this as under:

Quote:
This is caused by a secondary loop in your theme which is not behaving “nicely”. The secondary loop should not modify the variable $post, and if it does, the variable $post should be returned to it’s original state afterward. At the moment, Breadcrumb NavXT depends on the $post variable being correct.
Please guide me how to correct the loop...
Anand.

Last edited by tikdi; Mar 28, 2009 at 06:49 PM. Reason: Title incomplete
  #2  
Old Mar 30, 2009, 09:03 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I am not using a 2nd loop as far as I can see but one of the How-Tos here on the forum may have included a 2nd loop. Anyways, try putting
PHP Code:
<?php $wp_query->rewind_posts(); ?>
right before the breadcrumb code.
  #3  
Old Mar 31, 2009, 10:29 PM
tikdi
 
7 posts · Feb 2009
Thank you Flynn,
That worked perfectly.
Anand.

Bookmarks

Tags
breadcrumbs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show actual comments in multi-post pages arbatax Comments, trackbacks & pings 5 May 4, 2013 09:54 AM
Share Post on FaceBook without any use of plugins (( Atahualpa )) irvin Atahualpa 3 Wordpress theme 5 Dec 18, 2010 07:04 AM
how do i get comments to show up on homepage for each post??? drewjones Comments, trackbacks & pings 2 Apr 15, 2009 08:04 PM
All In One SEO PACK Not show in Post new rudianaeva Plugins & Atahualpa 3 Mar 31, 2009 12:58 AM
Post Info Items and new plugins technstuff Plugins & Atahualpa 9 Feb 26, 2009 08:30 PM


All times are GMT -6. The time now is 11:51 PM.


Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.