Where should i put the code exactly ? Please help me.
Where should i put the code exactly ? Please help me.
My theme is very basic. it has index, page, single and function.php files where can i put. But i could not decide where can i put it. if it is require, i could post php code page you... Please help me...
- fifacraft
- Posts: 1
- Joined: Fri May 22, 2009 1:02 am
- Thank you for using the Featured Content Gallery Forum
Re: Where should i put the code exactly ? Please help me.
Template pages:
index.php or home.php- You can put it on this page and it will be shown only on landing page, this page usually people put it in to
page.php - You can put it on this page and it will be shown on all "page" pages, but gallery will be the same on every "page"
single.php - You can put it on this page and it will be shown on all single "post" pages, but gallery will be the same on every single "post" page
function.php - this file you should not touch at all
header.php - this way same gallery will be shown on any page(home,search,single,page,etc) on you site
index.php or home.php- You can put it on this page and it will be shown only on landing page, this page usually people put it in to
page.php - You can put it on this page and it will be shown on all "page" pages, but gallery will be the same on every "page"
single.php - You can put it on this page and it will be shown on all single "post" pages, but gallery will be the same on every single "post" page
function.php - this file you should not touch at all
header.php - this way same gallery will be shown on any page(home,search,single,page,etc) on you site
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: 4738
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
related: how to have it and not use it?
I've successfully installed the plugin and it's running fine. I put the code in index.php.
However, there will be times when I won't want to use it for my online newspaper site. Maybe there will be 4 important articles that have no images associated with them, for instance. In that case, I won't want the plugin to run. Is there a way to turn it off without editing the index.php file to remove the code?
However, there will be times when I won't want to use it for my online newspaper site. Maybe there will be 4 important articles that have no images associated with them, for instance. In that case, I won't want the plugin to run. Is there a way to turn it off without editing the index.php file to remove the code?
- paulae
- Posts: 5
- Joined: Tue May 26, 2009 4:14 am
Re: Where should i put the code exactly ? Please help me.
Hi, sorry to kinda highjack this thread but about the header.php page; I inserted the code at the bottom of the header.php page and that kind of screws up the whole blog; the blog now only shows the two blogs out of the category that FeaturedContent uses and doesnt display the other blogs.
Does someone know where exactly to put the code in header.php to have it just underneath the header?
edit: example: http://www.bouweenpc.nl/wordpress/
Does someone know where exactly to put the code in header.php to have it just underneath the header?
edit: example: http://www.bouweenpc.nl/wordpress/
- KennyB
- Posts: 4
- Joined: Thu Jun 18, 2009 11:56 am
Re: Where should i put the code exactly ? Please help me.
please post here the code of your header.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: 4738
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: Where should i put the code exactly ? Please help me.
Here it is, it's pretty long though!
At the bottom you can see the FCG code.
- Code: Select all
<!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">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php
global $mandigo_options, $mandigo_version, $schemes, $dirs;
$title = '';
// get the appropriate title scheme depending on the type of page
if (is_single()) $title = $mandigo_options['title_scheme_single'];
elseif (is_page()) $title = $mandigo_options['title_scheme_page'];
elseif (is_archive()) {
if (is_day() || is_month() || is_year()) $title = $mandigo_options['title_scheme_date'];
else $title = $mandigo_options['title_scheme_category'];
}
elseif (is_search()) $title = $mandigo_options['title_scheme_search'];
else $title = $mandigo_options['title_scheme_index'];
// proceed with tag substitution
$title = str_replace(
array(
'%blogname%',
'%tagline%',
'%post%',
'%search%',
),
array(
get_bloginfo('name'),
get_bloginfo('description'),
get_the_title(),
$s,
),
$title
);
// category tag substitution
if (single_cat_title('',false))
$title = str_replace('%category%', single_cat_title('', false), $title);
else {
$categories = str_replace('%category%', get_the_category_list(', '), $title);
$title = preg_replace('/<[^>]+>/', '', $categories);
}
// date tag substitution
if (is_day() ) $title = str_replace('%date%', get_the_time(__('l, F jS, Y','mandigo')), $title);
elseif (is_month()) $title = str_replace('%date%', get_the_time(__('F, Y','mandigo')) , $title);
elseif (is_year() ) $title = str_replace('%date%', get_the_time('Y') , $title);
// output the result
echo $title;
?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<meta name="theme" content="Mandigo <?php echo $mandigo_version; ?>" />
<?php
// if the "random scheme" option is enabled
if ($mandigo_options['scheme_randomize']) {
$mandigo_options['scheme'] = $schemes[array_rand($schemes, 1)];
update_option('mandigo_options', $mandigo_options);
$dirs['loc']['scheme'] = $dirs['loc']['schemes'] . $mandigo_options['scheme'] .'/';
$dirs['www']['scheme'] = $dirs['www']['schemes'] . $mandigo_options['scheme'] .'/';
}
// if all links should be bold
if ($mandigo_options['bold_links'])
$lastminutecss[] = ' a { font-weight: bold; }';
// custom header images magic!
// recursivey find image files named mandigo_header_* in the user's uploaded files folder
$user_headers = @array_filter(
m_find_in_dir(
ABSPATH . get_option('upload_path'),
'mandigo_header(_.*)?\.(jpe?g|png|gif|bmp)$'
),
create_function('$filename', 'return !(preg_match("/-[0-9]+x[0-9]+/", $filename));')
);
if ($user_headers) {
// if we're in a category and there's a .jpg file named after it in the headers/ folder
if (is_category()) {
$category = array_shift(get_the_category());
foreach ($user_headers as $file) {
if (strstr($file, 'mandigo_header_cat_'. $category->cat_ID .'.')) {
$user_header = $file;
}
}
}
// if one of the files we found is named after the current post id
foreach ($user_headers as $file) {
if (strstr($file, 'mandigo_header_'. $post->ID .'.')) {
$user_header = $file;
}
}
// if we didn't find one but the "random headers" option is enabled
if (!$user_header && $mandigo_options['header_random_image']) {
shuffle($user_headers);
$user_header = array_shift($user_headers);
}
// if we found a header to display at one step or another,
if ($user_header) {
// translate its address
$user_header = str_replace(
ABSPATH,
get_bloginfo('wpurl') .'/',
$user_header
);
// and add it to last minuste css rules
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s) bottom center no-repeat; }',
$user_header
);
}
}
// if we didn't find a custom header in the user's uploaded files
if (!$noheaderimg) {
// if we're in a category and there's a .jpg file named after it in the headers/ folder
if (is_category()) {
$category = array_shift(get_the_category());
if (file_exists($dirs['loc']['headers'] . 'cat_'. $category->cat_ID .'.jpg')) {
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s.jpg) bottom center no-repeat; }',
$dirs['www']['headers'] . 'cat_'. $category->cat_ID
);
}
}
// if there's a .jpg file named after the current post id in the headers/ folder
elseif (file_exists($dirs['loc']['headers'] . $post->ID .'.jpg')) {
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s.jpg) bottom center no-repeat; }',
$dirs['www']['headers'] . $post->ID
);
}
// if we didn't find one but the "random headers" option is enabled
if (!$noheaderimg && $mandigo_options['header_random_image']) {
// get a list of images in headers/
$headersdir = opendir($dirs['loc']['headers']);
while (false !== ($file = readdir($headersdir))) {
if (preg_match('/\.(?:jpe?g|png|gif|bmp)$/i', $file))
$headers[] = $file;
}
// if we have found at least one
if (count($headers)) {
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s) bottom center no-repeat; }',
str_replace(
' ',
'%20',
$dirs['www']['headers'] . $headers[array_rand($headers, 1)]
)
);
}
}
}
// Windows Live Writer needs this when it updates blog settings for image placement to work
if (stristr($_SERVER['HTTP_USER_AGENT'], 'Windows Live Writer'))
$lastminutecss[] = ' .entry img { float: none; }';
// if favicon is present
if (file_exists($dirs['loc']['theme'] .'favicon.ico')) {
$favicon = $dirs['www']['theme'] .'favicon.ico';
?>
<link rel="shortcut icon" href="<?php echo $favicon; ?>" type="image/x-icon" />
<?php
}
// image & object max-width rules
$maxwidth = $mandigo_options['layout_width']
- 144
- (
$mandigo_options['sidebar_count'] > 0 && ($mandigo_options['sidebar_always_show'] || (!is_single() && !is_page()))
? (
$mandigo_options['sidebar_1_width']+12
+
(
$mandigo_options['layout_width'] == 1024 && $mandigo_options['sidebar_count'] == 2
? $mandigo_options['sidebar_2_width']+12
: 0
)
)
: 0
)
;
$lastminutecss[] = sprintf(
' .entry img, .entry embed, .entry object { max-width: %spx; width: expression(this.clientWidth > %s ? %s : true); }',
$maxwidth, $maxwidth, $maxwidth
);
$lastminutecss[] = ' .entry img { height: auto; }';
?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>.php<?php echo ($noheaderimg ? '?noheaderimg' : '') ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $dirs['www']['scheme']; ?>scheme.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php
// threaded comments js library for wp 2.7+
if (is_single()) wp_enqueue_script('comment-reply');
// main WordPress headers
wp_head();
?>
<script type="text/javascript" src="<?php echo $dirs['www']['js']; ?>jquery.js"></script>
<script type="text/javascript" src="<?php echo $dirs['www']['js']; ?>jquery.ifixpng.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<?php
// last minute css rules, if any
if (count($lastminutecss)) {
?>
<style type="text/css">
<?php
echo implode("\n", $lastminutecss);
?>
</style>
<?php
}
// HTML Inserts: head
echo get_option('mandigo_inserts_header');
?>
</head>
<?php
// HTML Inserts: body tag
$bodytag = get_option('mandigo_inserts_body');
// if we have a custom body tag set
if (preg_match('/<body/i', $bodytag))
echo $bodytag;
else
echo "<body>\n";
// heading levels for blog name & description (h1, h2, div, ...)
$tag_blogname = $mandigo_options['heading_level_blogname'];
$tag_blogdesc = $mandigo_options['heading_level_blogdesc'];
?>
<div id="page">
<div id="header" class="png">
<div id="headerimg">
<?php
// unless we chose to hide the blogname
if (!$mandigo_options['header_blogname_hide']) {
?>
<<?php echo $tag_blogname; ?> class="blogname" id="blogname"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></<?php echo $tag_blogname; ?>>
<?php
}
// if blog description is set and unless we chose to hide it
if (!$mandigo_options['header_blogdesc_hide'] && get_bloginfo('description')) {
?>
<<?php echo $tag_blogdesc; ?> class="blogdesc" id="blogdesc"><?php bloginfo('description'); ?></<?php echo $tag_blogdesc; ?>>
<?php
}
// this is the top navigation:
// the first <li> tag is the link to the homepage
?>
<ul class="pages png<?php echo ($mandigo_options['header_navigation_stripe'] ? ' head_overlay' : ''); ?>">
<li class="page_item"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home', 'mandigo'); ?></a></li>
<?php
// wordpress pages, minus the ones excluded in the theme options
wp_list_pages(
array(
'sort_column' => 'menu_order',
'depth' => ($mandigo_options['header_navigation_no_submenus'] ? 1 : 2),
'title_li' => '',
'exclude' => @implode(',', $mandigo_options['header_navigation_exclude_pages']),
)
);
// if you want to add custom static links at the end, use something similar to the following
// <li class="page_item"><a href="http://whatever.com/">Go somewhere</a></li>
// and put it right before the closing </ul>
?>
</ul>
</div>
</div>
<div id="main" class="png">
<?php
// HTML Inserts: top of page
echo get_option('mandigo_inserts_top');
?>
<table>
<tr>
<div><?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>
At the bottom you can see the FCG code.
- KennyB
- Posts: 4
- Joined: Thu Jun 18, 2009 11:56 am
Re: Where should i put the code exactly ? Please help me.
- Code: Select all
<table>
<tr>
<div><?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>
this is your 4 lasts rows of your code, by putting this at the end, you broke the table..
should by like this
- Code: Select all
<div><?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>
<table>
<tr>
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: 4738
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: Where should i put the code exactly ? Please help me.
Hi Yelena,
I tried that and it's still the same. Here's my code:
I tried that and it's still the same. Here's my code:
- Code: Select all
<!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">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php
global $mandigo_options, $mandigo_version, $schemes, $dirs;
$title = '';
// get the appropriate title scheme depending on the type of page
if (is_single()) $title = $mandigo_options['title_scheme_single'];
elseif (is_page()) $title = $mandigo_options['title_scheme_page'];
elseif (is_archive()) {
if (is_day() || is_month() || is_year()) $title = $mandigo_options['title_scheme_date'];
else $title = $mandigo_options['title_scheme_category'];
}
elseif (is_search()) $title = $mandigo_options['title_scheme_search'];
else $title = $mandigo_options['title_scheme_index'];
// proceed with tag substitution
$title = str_replace(
array(
'%blogname%',
'%tagline%',
'%post%',
'%search%',
),
array(
get_bloginfo('name'),
get_bloginfo('description'),
get_the_title(),
$s,
),
$title
);
// category tag substitution
if (single_cat_title('',false))
$title = str_replace('%category%', single_cat_title('', false), $title);
else {
$categories = str_replace('%category%', get_the_category_list(', '), $title);
$title = preg_replace('/<[^>]+>/', '', $categories);
}
// date tag substitution
if (is_day() ) $title = str_replace('%date%', get_the_time(__('l, F jS, Y','mandigo')), $title);
elseif (is_month()) $title = str_replace('%date%', get_the_time(__('F, Y','mandigo')) , $title);
elseif (is_year() ) $title = str_replace('%date%', get_the_time('Y') , $title);
// output the result
echo $title;
?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<meta name="theme" content="Mandigo <?php echo $mandigo_version; ?>" />
<?php
// if the "random scheme" option is enabled
if ($mandigo_options['scheme_randomize']) {
$mandigo_options['scheme'] = $schemes[array_rand($schemes, 1)];
update_option('mandigo_options', $mandigo_options);
$dirs['loc']['scheme'] = $dirs['loc']['schemes'] . $mandigo_options['scheme'] .'/';
$dirs['www']['scheme'] = $dirs['www']['schemes'] . $mandigo_options['scheme'] .'/';
}
// if all links should be bold
if ($mandigo_options['bold_links'])
$lastminutecss[] = ' a { font-weight: bold; }';
// custom header images magic!
// recursivey find image files named mandigo_header_* in the user's uploaded files folder
$user_headers = @array_filter(
m_find_in_dir(
ABSPATH . get_option('upload_path'),
'mandigo_header(_.*)?\.(jpe?g|png|gif|bmp)$'
),
create_function('$filename', 'return !(preg_match("/-[0-9]+x[0-9]+/", $filename));')
);
if ($user_headers) {
// if we're in a category and there's a .jpg file named after it in the headers/ folder
if (is_category()) {
$category = array_shift(get_the_category());
foreach ($user_headers as $file) {
if (strstr($file, 'mandigo_header_cat_'. $category->cat_ID .'.')) {
$user_header = $file;
}
}
}
// if one of the files we found is named after the current post id
foreach ($user_headers as $file) {
if (strstr($file, 'mandigo_header_'. $post->ID .'.')) {
$user_header = $file;
}
}
// if we didn't find one but the "random headers" option is enabled
if (!$user_header && $mandigo_options['header_random_image']) {
shuffle($user_headers);
$user_header = array_shift($user_headers);
}
// if we found a header to display at one step or another,
if ($user_header) {
// translate its address
$user_header = str_replace(
ABSPATH,
get_bloginfo('wpurl') .'/',
$user_header
);
// and add it to last minuste css rules
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s) bottom center no-repeat; }',
$user_header
);
}
}
// if we didn't find a custom header in the user's uploaded files
if (!$noheaderimg) {
// if we're in a category and there's a .jpg file named after it in the headers/ folder
if (is_category()) {
$category = array_shift(get_the_category());
if (file_exists($dirs['loc']['headers'] . 'cat_'. $category->cat_ID .'.jpg')) {
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s.jpg) bottom center no-repeat; }',
$dirs['www']['headers'] . 'cat_'. $category->cat_ID
);
}
}
// if there's a .jpg file named after the current post id in the headers/ folder
elseif (file_exists($dirs['loc']['headers'] . $post->ID .'.jpg')) {
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s.jpg) bottom center no-repeat; }',
$dirs['www']['headers'] . $post->ID
);
}
// if we didn't find one but the "random headers" option is enabled
if (!$noheaderimg && $mandigo_options['header_random_image']) {
// get a list of images in headers/
$headersdir = opendir($dirs['loc']['headers']);
while (false !== ($file = readdir($headersdir))) {
if (preg_match('/\.(?:jpe?g|png|gif|bmp)$/i', $file))
$headers[] = $file;
}
// if we have found at least one
if (count($headers)) {
$noheaderimg = 1;
$lastminutecss[] = sprintf(
' #headerimg { background: url(%s) bottom center no-repeat; }',
str_replace(
' ',
'%20',
$dirs['www']['headers'] . $headers[array_rand($headers, 1)]
)
);
}
}
}
// Windows Live Writer needs this when it updates blog settings for image placement to work
if (stristr($_SERVER['HTTP_USER_AGENT'], 'Windows Live Writer'))
$lastminutecss[] = ' .entry img { float: none; }';
// if favicon is present
if (file_exists($dirs['loc']['theme'] .'favicon.ico')) {
$favicon = $dirs['www']['theme'] .'favicon.ico';
?>
<link rel="shortcut icon" href="<?php echo $favicon; ?>" type="image/x-icon" />
<?php
}
// image & object max-width rules
$maxwidth = $mandigo_options['layout_width']
- 144
- (
$mandigo_options['sidebar_count'] > 0 && ($mandigo_options['sidebar_always_show'] || (!is_single() && !is_page()))
? (
$mandigo_options['sidebar_1_width']+12
+
(
$mandigo_options['layout_width'] == 1024 && $mandigo_options['sidebar_count'] == 2
? $mandigo_options['sidebar_2_width']+12
: 0
)
)
: 0
)
;
$lastminutecss[] = sprintf(
' .entry img, .entry embed, .entry object { max-width: %spx; width: expression(this.clientWidth > %s ? %s : true); }',
$maxwidth, $maxwidth, $maxwidth
);
$lastminutecss[] = ' .entry img { height: auto; }';
?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>.php<?php echo ($noheaderimg ? '?noheaderimg' : '') ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $dirs['www']['scheme']; ?>scheme.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php
// threaded comments js library for wp 2.7+
if (is_single()) wp_enqueue_script('comment-reply');
// main WordPress headers
wp_head();
?>
<script type="text/javascript" src="<?php echo $dirs['www']['js']; ?>jquery.js"></script>
<script type="text/javascript" src="<?php echo $dirs['www']['js']; ?>jquery.ifixpng.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<?php
// last minute css rules, if any
if (count($lastminutecss)) {
?>
<style type="text/css">
<?php
echo implode("\n", $lastminutecss);
?>
</style>
<?php
}
// HTML Inserts: head
echo get_option('mandigo_inserts_header');
?>
</head>
<?php
// HTML Inserts: body tag
$bodytag = get_option('mandigo_inserts_body');
// if we have a custom body tag set
if (preg_match('/<body/i', $bodytag))
echo $bodytag;
else
echo "<body>\n";
// heading levels for blog name & description (h1, h2, div, ...)
$tag_blogname = $mandigo_options['heading_level_blogname'];
$tag_blogdesc = $mandigo_options['heading_level_blogdesc'];
?>
<div id="page">
<div id="header" class="png">
<div id="headerimg">
<?php
// unless we chose to hide the blogname
if (!$mandigo_options['header_blogname_hide']) {
?>
<<?php echo $tag_blogname; ?> class="blogname" id="blogname"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></<?php echo $tag_blogname; ?>>
<?php
}
// if blog description is set and unless we chose to hide it
if (!$mandigo_options['header_blogdesc_hide'] && get_bloginfo('description')) {
?>
<<?php echo $tag_blogdesc; ?> class="blogdesc" id="blogdesc"><?php bloginfo('description'); ?></<?php echo $tag_blogdesc; ?>>
<?php
}
// this is the top navigation:
// the first <li> tag is the link to the homepage
?>
<ul class="pages png<?php echo ($mandigo_options['header_navigation_stripe'] ? ' head_overlay' : ''); ?>">
<li class="page_item"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home', 'mandigo'); ?></a></li>
<?php
// wordpress pages, minus the ones excluded in the theme options
wp_list_pages(
array(
'sort_column' => 'menu_order',
'depth' => ($mandigo_options['header_navigation_no_submenus'] ? 1 : 2),
'title_li' => '',
'exclude' => @implode(',', $mandigo_options['header_navigation_exclude_pages']),
)
);
// if you want to add custom static links at the end, use something similar to the following
// <li class="page_item"><a href="http://whatever.com/">Go somewhere</a></li>
// and put it right before the closing </ul>
?>
</ul>
</div>
</div>
<div id="main" class="png">
<?php
// HTML Inserts: top of page
echo get_option('mandigo_inserts_top');
?>
<div><?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>
<table>
<tr>
- KennyB
- Posts: 4
- Joined: Thu Jun 18, 2009 11:56 am
Re: Where should i put the code exactly ? Please help me.
First of all, thanks for this plugin, it is really fantastic!
I would like to ask your help in case of using a static page instead of your latest posts as a front page display. In such a case FCG disappears and have no clue where should I put the code to get the gallery back.
I'm using Aspire Magazine theme where the code is already included (I could not found it, but it must be there...).
Do you have any idea for solving this issue? Thanks for your reply,
Sylvia
I would like to ask your help in case of using a static page instead of your latest posts as a front page display. In such a case FCG disappears and have no clue where should I put the code to get the gallery back.
I'm using Aspire Magazine theme where the code is already included (I could not found it, but it must be there...).
Do you have any idea for solving this issue? Thanks for your reply,
Sylvia
- DolceVita
- Posts: 1
- Joined: Sun Jun 21, 2009 11:42 am
Re: Where should i put the code exactly ? Please help me.
DolceVita wrote:I would like to ask your help in case of using a static page instead of your latest posts as a front page display. In such a case FCG disappears and have no clue where should I put the code to get the gallery back.
I also cannot get the plugin to work on my site (which also has a static page as the front page display). Please help! Here is the code in the index.php file of my theme (Hemingway):
- Code: Select all
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php get_header(); ?>
<div id="primary" class="twocol-stories">
<div class="inside">
<?php
// Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel
query_posts('showposts=2');
?>
<?php if (have_posts()) : ?>
<?php $first = true; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if($count < 2) { ?>
<?php $count++; ?>
<div class="story<?php if($first == true) echo " first" ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt() ?>
<div class="details">
Posted at <?php the_time('ga \o\n n/j/y') ?> | <?php comments_popup_link('no comments;', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?> | <?php if (is_callable('the_tags')) the_tags('Tagged: ', ', ', ' | '); ?> <span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span>
</div>
</div>
<?php $first = false; ?>
<?php } ?>
<?php endwhile; ?>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<div class="clear"></div>
</div>
</div>
<!-- [END] #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
- eurochez
- Posts: 1
- Joined: Mon Jun 22, 2009 8:00 pm
Who is online
Users browsing this forum: No registered users and 0 guests









