Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Feature Content Gallery shows everywhere (http://forum.bytesforall.com/showthread.php?t=2525)

majofa Jul 19, 2009 07:19 AM

Feature Content Gallery shows everywhere
 
I am using WP 2.8.1 and Atahualpa 3.4.2
I inserted the Feature Content Gallery code in the theme's index.php:

<code><?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header(); ?>

<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></code>


It displays perfectly in the home page, but it also shows in every post and page.
How can I avoid this ?

Flynn Jul 22, 2009 11:07 AM

Change the code to

<?php if ( is_front_page() ) { include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); } ?>


All times are GMT -6. The time now is 04:41 AM.

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