Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Weird Error With Code in Loop as Opposed to index.php


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 9, 2009, 09:51 PM
adum's Avatar
adum
 
85 posts · Jun 2009
Hey,

I was trying to put this code in the loop (center column)

<?php if ( is_front_page() ) { ?>
<div align="center">
<?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?>
</div>
<?php } ?>

The plugin is for an image slideshow type thing, shows latest 5 posts from a determined category.

Anyway the slideshow loads up but following it, the 5th post gets posted on the front page, above the latest post (it takes over the number 1 position).

However when I put this code in index.php that error does not occur and it works fine.

Do you know if there is any reason why that error could have occured? I don't know if it's the plugin or Atahualpa causing that problem. Works in index.php but not in the loop.
  #2  
Old Oct 10, 2009, 04:48 AM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
possibly because the code resets the wp-query. you may want to put this code in the 'Content ABOVE the LOOP' section - it will run, then the loop will run
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '<' in the functions.php file pingitt Atahualpa 3 Wordpress theme 6 Mar 12, 2013 03:52 AM
Loop Code Displaying Instead of Pages TheInfamousGdub Atahualpa 3 Wordpress theme 6 Aug 27, 2009 08:52 PM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM
[SOLVED] 3.4.2: where to make changes that used to be in index.php? bcorrigan New Versions, & Updating 2 Jul 13, 2009 10:52 AM
make index.php be a "page" and blog postings go to different php page zhidoni Atahualpa 3 Wordpress theme 0 Jun 21, 2009 04:25 PM


All times are GMT -6. The time now is 01:06 AM.


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