• I go to add new post, add a title, the body of the post and the excerpt. The text in the body of the post is visible, but when I click publish, the text disappears and only the post title appears on my blog. The daily digest email include the excerpt though. Can you help me so the body of the post appears on my blog.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds like an issue with the template files. When you go to edit your post, is all the post text there?

    It’s possible your template uses <?php the_excerpt(); ?> but it needs <?php the_content(); ?> to display the whole post content.

    If so, go to Appearance > Edit Themes > Single Post and search for the_content or the_excerpt

    Thread Starter nmcnulty

    (@nmcnulty)

    I am not familiar with coding. Below is the code under single post. I did control F and found “content” but not “excerpt

    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h1><?php the_title(); ?></h1>
    <div class=”meta”>
    <?php if(get_option(‘uwc_dates_posts’) == ‘on’) { echo ‘<div class=”date”>’; the_time(get_option(‘date_format’)); echo ‘</div>’; } ?>
    <?php if(get_option(‘uwc_authors_posts’) == ‘on’) { _e(“By”, “magazine-basic”); echo ‘ ‘; the_author_posts_link(); } ?>
    </div>
    <div class=”entry”>
    <?php $subtitle = get_post_meta($post->ID, ‘subtitle’, true);
    if($subtitle) echo ‘<p class=”sub”>’.$subtitle.'</p>’;
    ?>
    <?php the_content(); ?>
    <?php the_tags(__(‘<p class=”tags”><small>Tags: ‘, “magazine-basic”), ‘, ‘, ‘</small></p>’); ?>
    </div>
    <?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages’, “magazine-basic”).’ ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    </div>

    <?php comments_template(); ?>
    <?php endwhile; else: ?>
    <p><?php _e(“Sorry, no posts matched your criteria.”, “magazine-basic”); ?></p>
    <?php endif; ?>
    <?php get_footer(); ?>

    Thread Starter nmcnulty

    (@nmcnulty)

    To answer the first question, when I go to edit a post, the text is not there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text in Post Disappearing’ is closed to new replies.