• Resolved chybowzj

    (@chybowzj)


    Hello I am doing a school project for a CMS class and I have a custom theme im working on and on my posts page which can be found here http://primeroofing.byethost7.com/deals/ my problem is that when I click on a post the page it goes to is blank it does not display the posts content. Im sure there is a pretty simple fix for this but I have tried googling this problem and cannot find a solution!

    Thanks for the help in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • anonymized-13749270

    (@anonymized-13749270)

    Do you have a single.php file in your theme?

    You can simply add <?php the_content(); ?> to show post content..

    Thread Starter chybowzj

    (@chybowzj)

    I added it but it still doesn’t show the text it just shows the share buttons.

    Please post your single.php codes here and let see what’s going wrong? 🙂

    Thread Starter chybowzj

    (@chybowzj)

    Added this coding and solved my problem thanks for the help you lead me in the right direction!

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
            <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
            <div class="entry">
                <?php the_content(); ?>
            </div>
    
            <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
        </div>
        <?php endwhile; endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Posts Page Help’ is closed to new replies.