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 » Center area post/pages » Post-Kicker, -Byline & -Footer »

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

Old Oct 9, 2009, 10:51 PM
adum's Avatar
85 posts · Jun 2009

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'); ?>
<?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.
Old Oct 10, 2009, 05:48 AM
juggledad's Avatar
23,759 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


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 04:52 AM
Loop Code Displaying Instead of Pages TheInfamousGdub Atahualpa 3 Wordpress theme 6 Aug 27, 2009 09:52 PM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 07: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 11: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 05:25 PM

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

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