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
How to get it to display on one page only!
25 posts • Page 1 of 3 • 1, 2, 3
- Thank you for using the Featured Content Gallery Forum
Re: How to get it to display on one page only!
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
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
-

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!
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!
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
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
-

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!
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!
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
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
-

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!
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!
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!
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
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
-

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!
i'm using thesis openhook- putting code in "before content"
- dot
- Posts: 5
- Joined: Thu Mar 04, 2010 7:08 am
25 posts • Page 1 of 3 • 1, 2, 3
Return to Plugin Settings, Features, and Options
Who is online
Users browsing this forum: No registered users and 0 guests








