Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Strange issue with Featured Content Gallery after switching hosts (http://forum.bytesforall.com/showthread.php?t=4784)

paulae Dec 9, 2009 06:18 AM

Strange issue with Featured Content Gallery after switching hosts
 
We moved the Gazette, http://larchmontgazette.com, from the hosting company we'd had for years to Hostgator. Immediate improvement in speed! Most of the move went smoothly, but a few odd glitches have cropped up.

For instance, Featured Content Gallery is supposed to appear only on the front page, but it's now appearing on the other news pages. Scroll to the bottom and click on 2. I didn't change anything about the code in the ATA Options/Style and Edit Center Column/Content Above the Loop:
Code:

<div align="center">
<?php if (is_home()) include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>

So why would FCG now appear where it shouldn't?

I'd love it if some of you could post what you see in the source code of the front page, down near the bottom: tell me what speed you get?

juggledad Dec 9, 2009 10:44 AM

129 queries. 1.450 seconds.

juggledad Dec 9, 2009 11:00 AM

change your test to ' (is_front_page() && !is_paged() )'

paulae Dec 9, 2009 01:40 PM

Thanks, JD! That did the trick. I wonder why the old way worked fine until the change to the new host?

There were no changes to our WP installation, just the move.

paulae Dec 9, 2009 01:42 PM

Oh, and about speed: with wp-super cache running, it's under 1 second in Safari, on the second visit. Wow.

There was obviously something really wrong with the way things were working at the old host.


All times are GMT -6. The time now is 02:14 AM.

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