StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-12-2008, 12:34 PM
dangeresque dangeresque is offline
Registered User
 
Join Date: Nov 2008
Posts: 2
Default FCG in FreshFolio Header

Hey guys, I have been having some major troubles with adding Featured Content Gallery into the header of my blog with the WooThemes Fresh Folio Theme. Check the website at http://bradyunplugged.com. The problem is that the site works fine without the display coding for FreshFolio in the header. When I put that code in, however, I get some interesting errors. Any "page" (about me, for example) does not show the text specified from the admin dashboard, but instead shows a listing of all of my posts in their entirety (possibly only those polled by FCG?). Navigating to an individual post exhibits the same problem. I've disabled it for now, but I can re-enable the FCG if it would help anyone else help me to solve the problem.

Here is my header.php file
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">

    <title>
    <?php if ( is_home() ) { ?><?php bloginfo('name'); ?>|<?php bloginfo('description'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php bloginfo('name'); ?>|Search Results<?php } ?>
    <?php if ( is_author() ) { ?><?php bloginfo('name'); ?>|Author Archives<?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?>|<?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php bloginfo('name'); ?>|<?php wp_title(''); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php bloginfo('name'); ?>|Archive|<?php single_cat_title(); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php bloginfo('name'); ?>|Archive|<?php the_time('F'); ?><?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>|Tag Archive|<?php  single_tag_title("", true); } } ?>
    </title>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
   
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        
    <!--[if lt IE 7]>
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/unitpngfix.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie6.css" media="screen" />
   <![endif]--> 
    
    <?php wp_head(); ?>

</head>

<body>

<?php include(TEMPLATEPATH . '/includes/version.php'); ?>

<div id="background">

<div id="page">

	<div id="header">

		<div id="logo">
            <h1>[img]<?php if ( get_option('woo_logo') <> [/img]<?php bloginfo('template_directory'); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></h1>			
			<p id="description"><?php bloginfo('description') ?> Read more »</p>
		</div>
		

		<div id="menu">
			<div id="nav1">
				<ul>
                    <li <?php if ( is_home() ) { ?> class="current_page_item" <?php } ?>><span>Home</span>
                    <?php
					$pages = wp_list_pages('sort_column=menu_order&title_li=&echo=0&depth=1&exclude='.$GLOBALS['archives_id']);
                    $pages = preg_replace('%<a ([^>]+)>%U','<a $1><span>', $pages);
                    $pages = str_replace('</a>','</span></a>', $pages);
                    echo $pages;
                    ?>
				[/list]			</div>
			
        </div>
        

		
		<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
        
	</div>
When enabling FCG, I replace the last line
Code:
<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
with the code provided
Code:
<?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>
And that's all it takes to cause the problems. Would using v1.0 help at all?

Thanks in advance for the help, everybody!

Brady Johnson
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Width Header still indents, how do I remove space on left of header? afarley General Discussion 3 04-07-2010 11:16 AM


All times are GMT -5. The time now is 09:29 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.