Featured Content Gallery | WordPress Plugin | iePlexus

FCG in header but page titles are wrong?

Customizing the FCG plugin and more

FCG in header but page titles are wrong?

PostBy mediamanuk on Sat Mar 19, 2011 7:50 am

Hi
Firstly, awsome plugin.
Secondly (me) a little knowledge is dangerous!

Ive put FCG in my header file and followed this tutorial here:
fcg-in-header-php-causing-pages-to-only-show-featured-conten-1401-10.html

FCG now works fine in my header aopart from my page titles are now coming out as my first post title?
Im no php programmer so i can copy and paste and thats about it.

My FCG php is above my Titles php (which ive also put in the header - ive done this for ease of use on how the page is laid out.

Switching the gallery code back to its original gets the correct name so its something in the 'new' gallery.php file - and me of course!

This is what is in my header below FCG

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_front_page() ) { ?>
<h2 class="entry-title"><?php the_title(); ?></h2>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?></div>

Work in progress test URL: http://dhi.4kingfisherwebs.com
any help apprciated
Neil
mediamanuk
 
Posts: 1
Joined: Sat Mar 19, 2011 7:41 am

Re: FCG in header but page titles are wrong?

Thank you for using the Featured Content Gallery Forum
 

Re: FCG in header but page titles are wrong?

PostBy admin on Mon Mar 21, 2011 9:02 am

why did you switch the code to that fix, did you have any problems before..This code is only needed when site shows same content on each page when the gallery put in header
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


Return to Plugin Settings, Features, and Options

Who is online

Users browsing this forum: No registered users and 0 guests