Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 10: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 05:49 PM. Reason: Title incomplete
  #2  
Old Mar 30, 2009, 08: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, 09: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 08:54 AM
Share Post on FaceBook without any use of plugins (( Atahualpa )) irvin Atahualpa 3 Wordpress theme 5 Dec 18, 2010 06:04 AM
how do i get comments to show up on homepage for each post??? drewjones Comments, trackbacks & pings 2 Apr 15, 2009 07:04 PM
All In One SEO PACK Not show in Post new rudianaeva Plugins & Atahualpa 3 Mar 30, 2009 11:58 PM
Post Info Items and new plugins technstuff Plugins & Atahualpa 9 Feb 26, 2009 07:30 PM


All times are GMT -6. The time now is 10:03 AM.


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