I am using the WordPress theme "StudioPress Red " by Daily Blog Tips. I would very much like to incorporate the fantastic Featured Content Gallery within a new website I am currently putting together (http://www.Chentsol-Health.com). However, I would like my homepage to be separate from featured content, and I have created a page I've called "Featured Content" where I would like to place my featured items.
PROBLEM: I am totally clueless at coding (I am only just beginning to learn PHP and HTML). I understand that I may need to edit my template file page.php AND insert the FCG code somewhere within it.
Can you help with this at all? My page.php file is fairly short and looks something like this:
<?php get_header(); ?>
<div id="contentwrapper"><div id="content">
<div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postContent"><?php the_content('(Read the rest of this entry...)'); ?></div>
<p class="comments"><?php comments_popup_link('Leave a Comment', 'Comments (1)', 'Comments (%)'); ?></p>
</div> <!-- Closes Post -->
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<div class="search">
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div> <!-- Closes Search -->
</div> <!-- Closes Post -->
<?php endif; ?>
</div></div> <!-- Closes Content -->
<?php get_sidebar(); ?>
<div class="cleared"></div>
</div> <!-- Closes Main -->
<div class="bottomcurvewhite"></div>
<?php get_footer(); ?>
Thanks in advance for all your help.
How To Use FCG On A Specified Page In Theme
4 posts • Page 1 of 1
- Thank you for using the Featured Content Gallery Forum
Re: How To Use FCG On A Specified Page In Theme
You can use this technique on page.php file probably after this line:
<div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div>
This would mean, when page.php loads, it checks if name of this page is "Featured Content", if yes, it will present the gallery...
More about this you can find in http://codex.wordpress.org/Conditional_Tags under "A PAGE Page" title
<div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div>
- Code: Select all
<?php if (is_page('Featured Content') )
{
include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');
}
?>
This would mean, when page.php loads, it checks if name of this page is "Featured Content", if yes, it will present the gallery...
More about this you can find in http://codex.wordpress.org/Conditional_Tags under "A PAGE Page" title
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
[Resolved]: How To Use FCG On A Specified Page In Theme
Hi Yelena,
That was fantastic advice - it worked a treat, and I only had to try once. Your head is full of poetry, girl.
Thanks.
That was fantastic advice - it worked a treat, and I only had to try once. Your head is full of poetry, girl.
Thanks.
Last edited by Chentsol on Wed May 13, 2009 9:59 am, edited 1 time in total.
- Chentsol
- Posts: 2
- Joined: Thu Apr 30, 2009 4:44 am
Re: How To Use FCG On A Specified Page In Theme
thank you...
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
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests









