Theme’s single-post page doesn’t show full post
-
I’m trying to work with this template here:
https://totalwp.com/aleveroFor a paid template, it’s really a pain in the ass. You can see in the live demo that there’s an inherent problem in the code — the single page doesn’t open up the full post!
https://www.templateaccess.com/wpdemos/wp18/?p=46My site’s not live right now because the client has requested it to be hidden. But I haven’t changed the source code from the download and I have the same exact problem as what you see in the live demo. Here’s the code for the single page:
<?php get_header(); ?> <div class="body"> <div id="columns"> <div id="centercol"> <?php $urlHome = get_bloginfo('template_directory'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="box post" id="post-<?php the_ID(); ?>"> <div class="content"> <div class="commets"><a>" title="View Comments"><?php comments_number(0, 1, '%'); ?></a></div> <!--/commets --> <div class="post-title"> <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php the_title(); ?> </a></h2> </div> <!--/post-title --> <div class="social-links"> <div class="post-date">On <?php the_time('m.d.y'); ?>, In <?php the_category(', ') ?>, by <?php the_author_posts_link(); ?></div> <div class="clr"></div> </div> <!--/social-links --> <div class="clr"></div> <?php $postimageurl = get_post_meta($post->ID, 'post-img', true); if ($postimageurl) { ?> <div class="pic fl"><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php echo $postimageurl; ?>" alt="<?php the_title_attribute(); ?>" /></a> </div> <?php } ?> <!--/post-img --> <div class="post-excerpt"> <?php the_excerpt(); ?> </div> <!--/post-excerpt --> </div> <!--/content --> <div class="clr"></div> <div class="content"> <div class="post-author"> <div class="pic fl"><?php echo get_avatar(get_the_author_email(), $size = '80', $default = $urlHome . '/images/default_avatar_author.gif' ); ?></div> <div class="author-descr"> <h3> <?php the_author(); ?> </h3> <p> <?php the_author_description(); ?> </p> <div class="author-details"><a>" target="_blank">Visit Authors Website</a> | <a>/author/<?php echo strtolower(get_the_author_nickname()); ?>">All Articles From This Author</a></div> </div> <!--/author-descr --> <div class="clr"></div> </div> <!--/post-author --> </div> <!--/content --> <div class="clr"></div> <div style="padding:5px;"> <div class="fl" style="padding:5px;">If you enjoyed this article, please consider sharing it!</div> <div class="fr"><a>&title=<?php the_title(); ?>" title="Bookmark at Delicious" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc1.gif" alt="Icon" /></a> <a>" title="Bookmark at Mixx" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc2.gif" alt="Icon" /></a> <a>&title=<?php the_title(); ?>" title="Bookmark at StumbleUpon" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc3.gif" alt="" /></a> <a>&title=<?php the_title(); ?>" title="Bookmark at Digg" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc4.gif" alt="Icon" /></a> </div> <div class="clr"></div> </div> <!--/social-links --> <div class="clr"></div> <!--/box --> <div class="post-rel"> <div class="content"> <div class="subcols"> <div class="col1"> <h2>Related Posts</h2> <div class="clr"></div> <?php $results = $wpdb->get_results(yarpp_sql(array('post'),array())); foreach ( (array) $results as $_post ) : $_post = get_post($_post->ID); ?> <div class="th fl"><a>ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div> <div><a>ID); ?>"><?php echo $_post->post_title; ?></a></div> <div class="hlr"></div> <?php endforeach; ?> </div> <!--/col1 --> <div class="col2"> <h2>Popular Posts</h2> <div class="clr"></div> <?php foreach ( (array) taccess_popular_posts() as $_post ) : ?> <div class="th fl"><a>ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div> <div><a>ID); ?>"><?php echo $_post->post_title; ?></a></div> <div class="hlr"></div> <?php endforeach; ?> </div> <!--/col1 --> <div class="clr"></div> </div> <!--/subcols --> </div> <!--/content --> </div> <div class="clr"></div> <!--/box --> <?php comments_template(); ?> </div> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> <div class="clr"></div> </div> <!--/centercol --> <?php get_sidebar(); ?> <div class="clr"></div> </div> <!--/columns --> </div> <!--/body --> <?php get_footer(); ?>
Help, please!!!!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Theme’s single-post page doesn’t show full post’ is closed to new replies.