Featured Content Gallery | WordPress Plugin | iePlexus

FCG in specific page (not a post)

Downloading, installing, upgrading, and configuring the FCG plugin

FCG in specific page (not a post)

PostBy aw3i on Wed Jun 23, 2010 1:34 pm

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.
aw3i
 
Posts: 2
Joined: Wed Jun 23, 2010 12:56 pm

Re: FCG in specific page (not a post)

Thank you for using the Featured Content Gallery Forum
 

Re: FCG in specific page (not a post)

PostBy admin on Wed Jun 23, 2010 2:13 pm

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
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
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: FCG in specific page (not a post)

PostBy aw3i on Tue Jun 29, 2010 10:48 am

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)

PostBy admin on Tue Jun 29, 2010 11:17 am

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)
, where 56 is page id
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: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: FCG in specific page (not a post)

PostBy beachroot on Sun May 15, 2011 9:18 pm

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!!!
beachroot
 
Posts: 2
Joined: Sun May 15, 2011 9:13 pm

Re: FCG in specific page (not a post)

PostBy admin on Mon May 16, 2011 7:40 am

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: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: FCG in specific page (not a post)

PostBy beachroot on Mon May 16, 2011 5:51 pm

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!!
beachroot
 
Posts: 2
Joined: Sun May 15, 2011 9:13 pm


Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests