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

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

Old Oct 9, 2009, 09: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, 04:48 AM
juggledad's Avatar
23,765 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 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:32 AM.

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