Featured Content Gallery | WordPress Plugin | iePlexus

How to get it to display on one page only!

Customizing the FCG plugin and more

How to get it to display on one page only!

PostBy Curt92 on Sun Feb 07, 2010 1:45 pm

Hey guys,
I have just began using featured content gallery but it only allows me to add featured content onto all my pages, I only want it to be shown on one certain page. But when I add the code to the page template it makes the gallery show up on all pages. How do you make it only show up on a certain page?

My site is http://netsuccessblog.com

Any tips will help
Curt92
 
Posts: 2
Joined: Sun Feb 07, 2010 1:39 pm

Re: How to get it to display on one page only!

Thank you for using the Featured Content Gallery Forum
 

Re: How to get it to display on one page only!

PostBy admin on Mon Feb 08, 2010 9:50 am

try like this
Code: Select all
<?php
if ( is_page('Your page title') )
{
include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');
}
?>
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 3368
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: How to get it to display on one page only!

PostBy Curt92 on Mon Feb 08, 2010 1:55 pm

Perfect! Thanks for the code, Plugin works great now.
Curt92
 
Posts: 2
Joined: Sun Feb 07, 2010 1:39 pm

Re: How to get it to display on one page only!

PostBy admin on Mon Feb 08, 2010 2:59 pm

yw
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 3368
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: How to get it to display on one page only!

PostBy dot on Thu Mar 04, 2010 7:14 am

Good morning! I have the plugin on my site and it works fine BUT I only want it on my home page. I can't seem to code it correctly to be only on my home page since the home page is not titled like the rest of my pages. What do I put in ('Your page title')) for it stay only on my home page? Tried 'home' and 'index' etc...
dot
 
Posts: 5
Joined: Thu Mar 04, 2010 7:08 am

Re: How to get it to display on one page only!

PostBy admin on Thu Mar 04, 2010 9:44 am

try
Code: Select all
<?php
if ( is_home()  || is_front_page())
{
include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');
}
?>
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 3368
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: How to get it to display on one page only!

PostBy dot on Thu Mar 04, 2010 2:23 pm

thanx...the screen is on home page only now BUT now the images are not showing...there's just a black screen with a black and grey bar streaming through it.
This code works but shows on all my pages: <?php global $post; include(WP_CONTENT_DIR . '/plugins/featured-content-gallery/gallery.php'); ?>

and now this is the new code: <?php
if ( is_home() || is_front_page())
{
include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');
}
?>

It works on home page only but as stated above-no images..please help...lol..thanx again!
dot
 
Posts: 5
Joined: Thu Mar 04, 2010 7:08 am

Re: How to get it to display on one page only!

PostBy admin on Thu Mar 04, 2010 2:48 pm

I need url
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 3368
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: How to get it to display on one page only!

PostBy dot on Thu Mar 04, 2010 3:16 pm

dot
 
Posts: 5
Joined: Thu Mar 04, 2010 7:08 am

Re: How to get it to display on one page only!

PostBy dot on Thu Mar 04, 2010 3:17 pm

i'm using thesis openhook- putting code in "before content"
dot
 
Posts: 5
Joined: Thu Mar 04, 2010 7:08 am

Next

Return to Plugin Settings, Features, and Options

Who is online

Users browsing this forum: No registered users and 0 guests