wordpress theme help

Hi Phil, Its probably calling a category of posts, you may need to create a category called featured or something like that and put a post in there with the image :) Can you post the code for the index.php and header.php?
 
thanks chris. and yes i can :)

header.php
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('description'); ?> &mdash; <?php bloginfo('name'); ?><?php } ?>        <?php if ( is_search() ) { ?>Search Results &mdash; <?php bloginfo('name'); ?><?php } ?>        <?php if ( is_author() ) { ?>Author Archives &mdash; <?php bloginfo('name'); ?><?php } ?>        <?php if ( is_single() ) { ?><?php wp_title(''); ?><?php } ?>        <?php if ( is_page() ) { ?><?php wp_title(''); ?><?php } ?>        <?php if ( is_category() ) { ?><?php single_cat_title(); ?> &mdash; <?php bloginfo('name'); ?><?php } ?>        <?php if ( is_month() ) { ?><?php the_time('F'); ?> &mdash; <?php bloginfo('name'); ?><?php } ?>        <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> &mdash; Tag Archive &mdash; <?php single_tag_title("", true); } } ?>    </title>    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />    <?php if (is_home()) { ?>        <?php if ( get_option('npress_meta_description') <> "" ) { ?><meta name="description" content="<?php echo stripslashes(get_option('npress_meta_description')); ?>" /><?php } ?>        <?php if ( get_option('npress_meta_keywords') <> "" ) { ?><meta name="keywords" content="<?php echo stripslashes(get_option('npress_meta_keywords')); ?>" /><?php } ?>        <?php if ( get_option('npress_meta_author') <> "" ) { ?><meta name="author" content="<?php echo stripslashes(get_option('npress_meta_author')); ?>" /><?php } ?>    <?php } ?>    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('npress_syndication') <> "" ) { echo get_option('npress_syndication'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />    <!--[if lt IE 8]>    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>    <![endif]-->    <?php if ( get_option('npress_scripts_header') <> "" ) { echo stripslashes(get_option('npress_scripts_header')); } ?>    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>    <?php wp_head(); ?>    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />    <?php if ( get_option('npress_customcss') ) { ?><link href="<?php bloginfo('template_directory'); ?>/css/custom.css" rel="stylesheet" type="text/css"><?php } ?>    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.min.js"></script>    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.jcarousel.pack.js"></script>    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/supersubs.js"></script>    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/superfish.js"></script>    <script type="text/javascript">        $(document).ready(function(){            $('ul.sf-menu').supersubs({                 minWidth:    12,                                // minimum width of sub-menus in em units                 maxWidth:    27,                                // maximum width of sub-menus in em units                 extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over                                                                     // due to slight rounding differences and font-family             }).superfish({                 delay:       400,                               // delay on mouseout                 animation:   {opacity:'show',height:'show'},    // fade-in and slide-down animation                 speed:       'fast',                            // faster animation speed                 autoArrows:  false,                             // disable generation of arrow mark-up                 dropShadows: false                              // disable drop shadows             }).children().find('li:first').css('border-top','0px').find('a').css('border-top','0px');                        $("#featured .f-item").hover(function(){                $(this).find(".f-meta").stop().animate({                    top:0                }, 150);                }, function(){                $(this).find(".f-meta").stop().animate({                    top:180                }, 150);            });                        $("#sidebar .subscription span").hover(function(){                $(this).stop().animate({                    marginLeft:5                }, 150);                }, function(){                $(this).stop().animate({                    marginLeft:0                }, 150);            });                        var tabContainers = $('div.tabs > div.tabItem');            var tabNav = $('div.tabnav').find('span.tn-item a');            tabContainers.hide().filter(':first').show();            $('div.tabnav span.tn-item a').click(function(){                tabContainers.hide();                tabContainers.filter(this.hash).show();                $('div.tabs .tn-arrow').css('left',this.id + 'px');                return false;            });        });                function equalHeight() {            var group = $('#posts').find('.col2');            tallest = 0;            extended = 0;            group.each(function() {                thisHeight = $(this).height();                if(thisHeight > tallest) {                    tallest = thisHeight;                }            });            group.height(tallest);        }        window.onload = equalHeight;    </script></head><body><div id="base" class="container_12">    <div id="header">        <div id="branding" class="clearfix">            <div class="blog-head left">                <span class="blog-description"><?php bloginfo('description'); ?></span>                <h1 class="blog-title">                    <?php if(get_option('npress_customlogo') <> "") : ?>                    <img src="<?php echo stripslashes(get_option('npress_customlogo')); ?>" border="0" />                    <?php else : ?>                    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>                    <?php endif; ?>                </h1>            </div>            <div class="top-ad right">                <?php if(get_option('npress_ad_topblock') <> "") : echo stripslashes(get_option('npress_ad_topblock')); ?>                <?php else : ?>                <a href="mailto:<?php bloginfo('admin_email'); ?>?subject=Advertise"><img src="<?php bloginfo('template_directory'); ?>/images/ads-top.jpg" border="0" /></a>                <?php endif; ?>            </div>        </div>        <div id="navigation" class="clearfix">            <ul class="sf-menu">                <li><a href="<?php bloginfo('url'); ?>">Home</a></li>                <?php wp_revamp_pages(); ?>                <li class="nav-rss"><a href="<?php bloginfo('comments_rss2_url'); ?>">Comments</a></li>                <li class="nav-rss"><a href="<?php if ( get_option('npress_syndication') <> "" ) { echo get_option('npress_syndication'); } else { echo get_bloginfo_rss('rss2_url'); } ?>">Posts</a></li>            </ul>        </div>    </div>    <div id="featured" class="clearfix">        <?php $featured_post = new WP_Query('showposts=4&cat='.get_featuredgallery_options()); ?>        <?php if ($featured_post->have_posts()) : while ($featured_post->have_posts()) : $featured_post->the_post(); ?>        <div class="f-item grid_3">            <?php if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) : ?>                <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'large', false, '' ); ?>                <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo $src[0]; ?>&w=220&h=250&zc=1" border="0" alt="<?php the_title(); ?>" />            <?php else : ?>                <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>                    <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=220&h=250&zc=1" border="0" alt="<?php the_title(); ?>" />                <?php else : ?>                    <img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo wp_catch_first_image('m'); ?>&w=220&h=250&zc=1" border="0" alt="<?php the_title(); ?>" />                <?php endif; ?>            <?php endif; ?>            <div class="f-meta">                <h3><a href="<?php the_permalink(); ?>" title="Continue reading "<?php the_title(); ?>""><?php the_title(); ?></a></h3>                <p><?php wp_limit_post(180,'.'); ?></p>            </div>        </div>        <?php endwhile; endif; ?>    </div>
 
index.php
Code:
<?php get_header(); ?>    <div id="main" class="clearfix">        <div id="posts" class="grid_8">            <?php                $alt = true;                $split = false;            ?>            <?php if ( have_posts() ) : while ( have_posts() ) :  the_post(); ?>            <?php if(!$split) : ?>            <div class="post">                <div class="post-image">                    <?php if ( function_exists('has_post_thumbnail')  && has_post_thumbnail() ) : ?>                        <?php $src = wp_get_attachment_image_src(  get_post_thumbnail_id(get_the_ID()), 'large', false, '' ); ?>                        <img src="<?php bloginfo(  'template_directory' ); ?>/timthumb.php?src=<?php echo $src[0];  ?>&w=576&h=172&zc=1" border="0" alt="<?php  the_title(); ?>" />                    <?php else : ?>                        <?php if( get_post_meta( $post->ID,  "image_value", true ) ) : ?>                            <img src="<?php bloginfo(  'template_directory' ); ?>/timthumb.php?src=<?php echo  get_post_meta( $post->ID, "image_value", true );  ?>&w=576&h=172&zc=1" border="0" alt="<?php  the_title(); ?>" />                        <?php else : ?>                            <img src="<?php bloginfo(  'template_directory' ); ?>/timthumb.php?src=<?php echo  wp_catch_first_image('l');  ?>&w=576&h=172&zc=1" border="0" alt="<?php  the_title(); ?>" />                        <?php endif; ?>                    <?php endif; ?>                </div>                <h1 class="post-title"><a href="<?php  the_permalink(); ?>" title="Continue reading "<?php  the_title(); ?>""><?php the_title();  ?></a></h1>                <div class="post-meta clearfix">                    <span class="datetime"><?php the_time('F  jS, Y') ?></span>                    <span class="category"><?php  the_category(', ') ?></span>                    <span class="comment"><?php  comments_number('No Comment','1 Comment','% Comments');  ?></span>                </div>                <div class="post-excerpt"><?php  wp_limit_post(200,'.'); ?></div>                <span class="post-link"><a href="<?php  the_permalink(); ?>" title="Continue reading "<?php  the_title(); ?>"">Continue reading  &raquo;</a></span>            </div>            <?php $split = true; ?>            <?php else : ?>            <div class="post col2 grid_4 <?php if($alt){ echo  'alpha'; $alt = false; }else{ echo 'omega'; $alt = true; } ?>">                <div class="post-image">                    <?php if ( function_exists('has_post_thumbnail')  && has_post_thumbnail() ) : ?>                        <?php $src = wp_get_attachment_image_src(  get_post_thumbnail_id(get_the_ID()), 'large', false, '' ); ?>                        <img src="<?php bloginfo(  'template_directory' ); ?>/timthumb.php?src=<?php echo $src[0];  ?>&w=256&h=172&zc=1" border="0" alt="<?php  the_title(); ?>" />                    <?php else : ?>                        <?php if( get_post_meta( $post->ID,  "image_value", true ) ) : ?>                            <img src="<?php bloginfo(  'template_directory' ); ?>/timthumb.php?src=<?php echo  get_post_meta( $post->ID, "image_value", true );  ?>&w=256&h=172&zc=1" border="0" alt="<?php  the_title(); ?>" />                        <?php else : ?>                            <img src="<?php bloginfo(  'template_directory' ); ?>/timthumb.php?src=<?php echo  wp_catch_first_image('m');  ?>&w=256&h=172&zc=1" border="0" alt="<?php  the_title(); ?>" />                        <?php endif; ?>                    <?php endif; ?>                </div>                <h1 class="post-title"><a href="<?php  the_permalink(); ?>" title="Continue reading "<?php  the_title(); ?>""><?php the_title();  ?></a></h1>                <div class="post-meta clearfix">                    <span class="datetime"><?php the_time('F  jS, Y') ?></span>                    <span class="comment"><?php  comments_number('No Comment','1 Comment','% Comments');  ?></span>                </div>                <div class="post-excerpt"><?php  wp_limit_post(200,'.'); ?></div>                <span class="post-link"><a href="<?php  the_permalink(); ?>" title="Continue reading "<?php  the_title(); ?>"">Continue reading  &raquo;</a></span>            </div>            <?php endif; ?>            <?php endwhile; endif; ?>            <div style="clear:both; "><!-- clearing  --></div>            <div class="post-navigation clearfix"><?php  if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>        </div>        <div id="sidebar" class="grid_4">            <?php get_sidebar(); ?>        </div>    </div><?php get_footer(); ?>
 
yeah you need a featured post category in your posts and it searches for the featured image. So I would create a category called featured and see how that works (if not featured, then try feature).

Also look to see if there are any plugins that came with it for the featured post like featuredgallery or something like that :) it might be under the appearance (in the drop down on the left :))

Let me know if that helps :) alternatively if you set me up as an admin user for the site i'll have a looksee and set it up for you :)
 
Thanks for the help so far Chris.

I created the feature/d catergory but didnt seem to help.

Ive sent you a PM with a user and password..

Thanks alot.

Phil
 
When I look on the homepage, after looking on the post, it does display the post in the main feature section. just not the image for some reason :confused:
 
Back
Top