Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112476

taswork11 on "Duplicate posts appearing above homepage welcome"

$
0
0

Thank you for coming back to me, I cannot resolve the javascript issue as I wouldn't know where to start looking, can you provide some pointers please?
I cannot find a home.php but I have a template-home.php, there also does not appear to be a recent posts div, code for homepage is below

<?php
/**
 * Template Name: Home Page Template
 * Description: A Page Template for the home page
 *
 * @package WordPress
 * @subpackage Mummy_Blog
 * @since Mummy Blog 1.0
 */

// are we displaying a sidebar here?
// if we're using this template it means we are on a "page"
// and this "page" will have options under it for sidebar etc..

the_post();

get_header();

// incase a plugin at the top does a loop - this one fails.
wp_reset_postdata();
?>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <?php
        $home_style = 'home_no_thumb';
        if ( has_post_thumbnail() ) {
            //$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( THUMB_IMAGE_WIDTH, THUMB_IMAGE_HEIGHT) );
            //print_r($image);
            //the_post_thumbnail( );
            $home_style = 'home_has_thumb';
            ?>
            <div class="fancy_picture_box" style="float:right; margin-left:10px;">
                <!-- start with the plain image you want to be fancified -->
                <?php the_post_thumbnail( 'home-pretty-thumb' ); ?>
                <div></div>
            </div>
            <?php
        } ?>

        <div class="home_wrap <?php echo $home_style;?>">

            <h1 style="height:40px;">
                <span class="florish_title_left"></span>
                <span><?php the_title(); ?></span>
                <span class="florish_title_right"></span>
            </h1>

            <div class="entry-content">
                <?php the_content(); ?>
                <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'mummyblog' ) . '</span>', 'after' => '</div>' ) ); ?>
            </div><!-- .entry-content -->

            <div class="fancy_hr_home"></div>
        </div>

    </article><!-- #post-<?php the_ID(); ?> -->

<?php get_footer(); ?>

Your help is very much appreciated
Thanks Toni


Viewing all articles
Browse latest Browse all 112476

Trending Articles