Hi everyone,
I've seen quite a few posts here about this, but most muddle up adding FCG to either Posts or Pages; can anyone help with the following please:
Where to add the code to insert FCG into a single page (not the homepage)?
I'm using WP, Vibrant CMS theme by Woo Themes: http://www.woothemes.com/2008/06/vibrantcms/
My url and specific page I want the FCG is: http://www.aw3i.com/resources/
There is a PAGE TEMPLATE (page.php) but it's not easy to find where exactly to add the code in this file - or indeed what the code should really be.
Any ideas - many many thanks in advance (my eyes are square now for staring at my screen to 3 hours).
Adrian.
FCG in specific page (not a post)
7 posts • Page 1 of 1
Re: FCG in specific page (not a post)
I am not sure in what place in page.php you need to put the code, just try it somewhere..
but the code would be
but the code would be
- Code: Select all
<?php
if (is_page('you page title here'))
{
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: 4789
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: FCG in specific page (not a post)
That hasn't worked. I must be doing something else wrong. I'll have to park this for now, spent far too long on it. Thanks for coming back to me though. Cheers, Adrian.
- aw3i
- Posts: 2
- Joined: Wed Jun 23, 2010 12:56 pm
Re: FCG in specific page (not a post)
it should work unless you are giving wrong title in that statement, also you can use page id instead of title, for example
- Code: Select all
is_page(56)
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: 4789
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: FCG in specific page (not a post)
This worked for me but created a new problem. Using the code to add FCG to just a specific page, the gallery shows up but the text below shows up from the wrong page.
ie: http://jhemstreet.com
Instead of the home page text it now shows the text from the rock climbing page. When I remove the php code for the FCG the correct home page text shows again.
Any ideas on how to fix this??
Thanks so much for your help!!!
ie: http://jhemstreet.com
Instead of the home page text it now shows the text from the rock climbing page. When I remove the php code for the FCG the correct home page text shows again.
Any ideas on how to fix this??
Thanks so much for your help!!!
- beachroot
- Posts: 2
- Joined: Sun May 15, 2011 9:13 pm
Re: FCG in specific page (not a post)
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: 4789
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: FCG in specific page (not a post)
I changed out the gallery.php file with your updated code, but I'm still having the same problem with my home page (which is a static page) displaying text from another page and not its own.
I guess for a temporary fix I can write HTML to get the page to say what I want, but soon that defeats the purpose of creating this website with wordpress.
Love your gallery though!!
I guess for a temporary fix I can write HTML to get the page to say what I want, but soon that defeats the purpose of creating this website with wordpress.
Love your gallery though!!
- beachroot
- Posts: 2
- Joined: Sun May 15, 2011 9:13 pm
7 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests









