Kindly check your blog page template, I guess its being displayed twice.
Or you may share the blog template located under your theme folder.
Do you mean blog template = page.php??
And when you say under my theme folder, do you mean under theme functions?
Thank you…
Check the template used by the url
http://lisakotin.com/blog/
Via edit panel.
I think that is Loop-page.php
I cannot understand the code.
Here is the code:
<?php
/**
* The loop that displays a page.
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop-page.php.
*
* @package WordPress
* @subpackage Lisa_Kotin
* @since Lisa Kotin 1.2
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="border:0px !important;">
<?php if ( is_front_page() ) { ?>
<h1 class="heading"><?php the_title(); ?></h2>
<?php } else { ?>
<h1 class="heading"><?php the_title(); ?></h1>
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'lisakotin' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'lisakotin' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php //comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
It looks like I am using Featured Post Plugin. This may be where to solve issue?
I hope you can help. I am at a loss.
The plugin uses this code:
<?php query_posts($query_string."&featured=yes&posts_per_page=1");
my full homepage code is this:
get_header(); ?>
<div class="center-left">
<h1 class="heading">true confections: <br> a blog about sugar addiction</h1>
<?php query_posts($query_string."&featured=yes&posts_per_page=1");
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="video">
<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
</div>
<div class="video-txt">
<h2><?php the_title(); ?></h2>
<span><?php echo get_the_date(); ?></span>
<?php the_content(); ?>
<br>
<a href="<?php echo site_url();?>/blog/">Click here for more Blogs >></a>
</div>
<?php endwhile; ?>
<?php
wp_reset_query(); ?>
<div class="news-sec">
<h1 class="heading">news</h1>
<?php
query_posts('post_type=news');
if (have_posts()) : while (have_posts()) : the_post();
?>
<h2><?php echo get_the_date(); ?></h2>
<p><?php the_content(); ?></p>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
<div class="center-right">
<?php dynamic_sidebar( 'primary-widget-area' ); ?>
</div>
<?php get_footer(); ?>