<?php if (!is_404() && have_posts()) : while (have_posts()) : the_post(); // START OF THE LOOP ?>
<div class="postwrap fix">
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php if(is_single()): // Post to Post Navigation?>
<div class="post-nav fix"> <span class="previous"><?php previous_post_link('%link') ?></span> <span class="next"><?php next_post_link('%link') ?></span></div>
<?php endif;?>
<?php if(!is_page()):?>
<div class="copy fix">
<?php if(pl_show_thumb($post->ID)): // Thumbnails ?>
<div class="post-thumb">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
<?php the_post_thumbnail('thumbnail');?>
</a>
</div>
<?php endif; ?>
<div class="post-header fix <?php if(!pl_show_thumb($post->ID) && !get_post_meta($post->ID, 'thumb', true)) echo 'post-nothumb'; // Adjust Width For No Thumb?>" style="">
<div class="post-title-section fix">
<div class="post-title fix">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to',TDOMAIN);?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="metabar">
<em>
<?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>,
<?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>,
<?php _e('by',TDOMAIN);?> <?php the_author(); ?>
<?php edit_post_link(__('<strong>(Edit Post)</strong>', TDOMAIN), ' ', ' ');?>
</em>
</div>
</div>
<div class="post-comments">
<a href="<?php the_permalink(); ?>#comments" title="<?php _e('View Comments', TDOMAIN);?>"><span><?php comments_number(0, 1, '%'); ?></span></a>
</div>
</div>
<!--/post-title -->
<?php the_content('Read more...'); ?>
<?php if(pl_show_excerpt($post->ID)): // Post Excerpt ?>
<div class="post-excerpt">
<?php the_excerpt(); ?>
</div>
<?php if(is_home() && !pl_show_content($post->ID)): // 'Continue Reading' link ?>
<a class="continuereading" href="<?php the_permalink(); ?>">
<?php e_pagelines('post_footer_text', __('Continue Reading', TDOMAIN));?>
</a>
<?php endif;?>
<?php endif; ?>
</div>
</div>
<?php endif;?>
<?php if(pl_show_content($post->ID)): // Post and Page Content ?>
<div class="copy fix">
<div class="textcontent">
<?php the_content(__('<p>Continue reading »</p>',TDOMAIN)); ?>
<?php if(is_single()) wp_link_pages(__('<p><strong>Pages:</strong>', TDOMAIN), '</p>', __('number', TDOMAIN)); ?>
<?php edit_post_link(__('Edit',TDOMAIN), '<p>', '</p>'); ?>
<div class="clear"></div>
</div>
<div class="tags">
<?php the_tags(__('Tagged with: ', TDOMAIN),' • ',''); ?>
</div>
</div>
<?php if(pagelines('authorinfo') && is_single() && VPRO):?>
<?php include(THEME_LIB.'/_authorinfo.php');?>
<?php endif;?>
<?php endif;?>
<?php if(!is_page()) include(THEME_LIB.'/_post_footer.php');?>
</div><!--post -->
</div>
<div class="clear"></div>
<?php if(is_single() || is_page()): // Content sidebar and comments area ?>
<?php if(VPRO) include(THEME_LIB."/_contentsidebar.php");?>
<div class="postwrap <?php if(!have_comments() && 'open' != $post->comment_status) echo "nocommentform";?>">
<div class="hentry">
<div class="copy"> <?php comments_template();?></div>
</div>
</div>
<?php endif; endwhile; ?>
<?php include(THEME_LIB.'/_pagination.php');?>
<?php else : // show this if 404 error or no post/page is returned ?>
<div class="postwrap fix">
<div class="hentry">
<div class="billboard">
<?php if(is_404()):?>
<h2 class="center"><?php _e('Error 404 - Page Not Found',TDOMAIN);?></h2>
<?php else:?>
<h2 class="center"><?php _e('Nothing Found',TDOMAIN);?></h2>
<?php endif;?>
<p class="center"><?php _e('Sorry, what you are looking for isn't here.', TDOMAIN);?></p>
<div class="center fix"><?php include (THEME_LIB . '/_searchform.php'); ?></div>
</div>
</div>
</div>
<?php endif; // end the loop ?> Any help there?
Content showing twice in blog posts in eco pro
#1
Posted 14 May 2012 - 03:12 PM
#2
Posted 14 May 2012 - 08:39 PM
#3
Posted 15 May 2012 - 02:58 PM
#4
Posted 16 May 2012 - 02:06 AM
#5
Posted 16 May 2012 - 03:57 AM
#6
Posted 16 May 2012 - 10:27 AM
#7
Posted 16 May 2012 - 02:53 PM
#8
Posted 16 May 2012 - 03:19 PM
#9
Posted 16 May 2012 - 07:46 PM
The setting for full content is set at Dashboard > EcoPro > Theme Options > Pages And Posts under "Full Post Content Placement" (scroll down) and check the option Show full content on all blog pages
That should do the trick.
#10
Posted 16 May 2012 - 10:51 PM
#11
Posted 17 May 2012 - 02:11 AM
#12
Posted 17 May 2012 - 03:00 AM
#13
Posted 17 May 2012 - 03:06 AM
#14
Posted 17 May 2012 - 03:20 AM
<?php include (TEMPLATEPATH . '/_theloop.phpwith the entire code of _the_loop.php. But I added in this code:
<?php the_content('Read more...'); ?> after <!--/post-title -->and put that all into the category.php file. So now the category.php file looks like this:
<?php
if(is_page_template('page-fullwidth.php') || is_page_template('page-fullhighlight.php') || is_page_template('page-carousel-full.php') || is_page_template('page-feature-fullwidth.php')) $full_width_page = true;
else $full_width_page = false;
if(is_page_template('page-carousel.php') || is_page_template('page-carousel-full.php')) $carousel_page = true;
else $carousel_page = false;
if(VPRO && isset($post) && (is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || is_page_template('page-feature-fullwidth.php') ||(is_home() && pagelines('featureblog')))) $featureslide_template = true;
else $featureslide_template = false;
if(VPRO && isset($post) && (is_page_template('page-feature.php') || (is_page_template('page-feature-fullwidth.php') || is_page_template('page-feature-page.php')) || m_pagelines('featureboxes', $post->ID))) $fboxes_template = true;
else $fboxes_template = false;
?>
<?php get_header();?>
<?php
if($carousel_page) include(PAGELINES_PRO.'/template_carousel.php');
elseif($featureslide_template) include(PAGELINES_PRO . '/template_feature.php');
else require(THEME_LIB.'/_spotlight.php');
?>
<?php if(!is_404()) include(THEME_LIB.'/_sub_head.php');?>
<div <?php if($full_width_page):?>id="fullwidth"<?php endif;?> class="contentcontainer fix">
<div class="texture fix">
<div class="content fix <?php if(pagelines('leftsidebar', $post->ID) || is_page_template('page-leftsidebar.php')):?>leftsidebar<?php endif;?>">
<?php if($fboxes_template) include(PAGELINES_PRO . '/template_fboxes.php');?>
<div id="maincontent" >
<?php if (!is_404() && have_posts()) : while (have_posts()) : the_post(); // START OF THE LOOP ?>
<div class="postwrap fix">
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php if(is_single()): // Post to Post Navigation?>
<div class="post-nav fix"> <span class="previous"><?php previous_post_link('%link') ?></span> <span class="next"><?php next_post_link('%link') ?></span></div>
<?php endif;?>
<?php if(!is_page()):?>
<div class="copy fix">
<?php if(pl_show_thumb($post->ID)): // Thumbnails ?>
<div class="post-thumb">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
<?php the_post_thumbnail('thumbnail');?>
</a>
</div>
<?php endif; ?>
<div class="post-header fix <?php if(!pl_show_thumb($post->ID) && !get_post_meta($post->ID, 'thumb', true)) echo 'post-nothumb'; // Adjust Width For No Thumb?>" style="">
<div class="post-title-section fix">
<div class="post-title fix">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to',TDOMAIN);?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="metabar">
<em>
<?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>,
<?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>,
<?php _e('by',TDOMAIN);?> <?php the_author(); ?>
<?php edit_post_link(__('<strong>(Edit Post)</strong>', TDOMAIN), ' ', ' ');?>
</em>
</div>
</div>
<div class="post-comments">
<a href="<?php the_permalink(); ?>#comments" title="<?php _e('View Comments', TDOMAIN);?>"><span><?php comments_number(0, 1, '%'); ?></span></a>
</div>
</div>
<!--/post-title -->
<?php the_content('Read more...'); ?>
<?php if(pl_show_excerpt($post->ID)): // Post Excerpt ?>
<div class="post-excerpt">
<?php the_excerpt(); ?>
</div>
<?php if(is_home() && !pl_show_content($post->ID)): // 'Continue Reading' link ?>
<a class="continuereading" href="<?php the_permalink(); ?>">
<?php e_pagelines('post_footer_text', __('Continue Reading', TDOMAIN));?>
</a>
<?php endif;?>
<?php endif; ?>
</div>
</div>
<?php endif;?>
<?php if(pl_show_content($post->ID)): // Post and Page Content ?>
<div class="copy fix">
<div class="textcontent">
<?php the_content(__('<p>Continue reading »</p>',TDOMAIN)); ?>
<?php if(is_single()) wp_link_pages(__('<p><strong>Pages:</strong>', TDOMAIN), '</p>', __('number', TDOMAIN)); ?>
<?php edit_post_link(__('Edit',TDOMAIN), '<p>', '</p>'); ?>
<div class="clear"></div>
</div>
<div class="tags">
<?php the_tags(__('Tagged with: ', TDOMAIN),' • ',''); ?>
</div>
</div>
<?php if(pagelines('authorinfo') && is_single() && VPRO):?>
<?php include(THEME_LIB.'/_authorinfo.php');?>
<?php endif;?>
<?php endif;?>
<?php if(!is_page()) include(THEME_LIB.'/_post_footer.php');?>
</div><!--post -->
</div>
<div class="clear"></div>
<?php if(is_single() || is_page()): // Content sidebar and comments area ?>
<?php if(VPRO) include(THEME_LIB."/_contentsidebar.php");?>
<div class="postwrap <?php if(!have_comments() && 'open' != $post->comment_status) echo "nocommentform";?>">
<div class="hentry">
<div class="copy"> <?php comments_template();?></div>
</div>
</div>
<?php endif; endwhile; ?>
<?php include(THEME_LIB.'/_pagination.php');?>
<?php else : // show this if 404 error or no post/page is returned ?>
<div class="postwrap fix">
<div class="hentry">
<div class="billboard">
<?php if(is_404()):?>
<h2 class="center"><?php _e('Error 404 - Page Not Found',TDOMAIN);?></h2>
<?php else:?>
<h2 class="center"><?php _e('Nothing Found',TDOMAIN);?></h2>
<?php endif;?>
<p class="center"><?php _e('Sorry, what you are looking for isn't here.', TDOMAIN);?></p>
<div class="center fix"><?php include (THEME_LIB . '/_searchform.php'); ?></div>
</div>
</div>
</div>
<?php endif; // end the loop ?>
</div>
<?php if(!$full_width_page) include(THEME_LIB.'/template_sidebar.php');?>
<div class="clear"></div>
</div>
</div>
</div>
<?php get_footer();?> Everything seems to be working fine now. Any reason this isn't a good idea?
#15
Posted 17 May 2012 - 11:59 AM












