WordPress.org

Ready to get started?Download WordPress

Forums

content instead of excerpt (5 posts)

  1. johndove523
    Member
    Posted 1 year ago #

    (Sorry, I searched for this and saw some related topics but I'm seeing something different in my code.) - Please see url http://http://testing.backstageweb.net/?page_id=39

    Instead of the [...] abbreviated posts, I want to see the whole post, but in my custom-blog-page.php file, I don't see anything that refers to "the_excerpt", I see this:

    <?php
    		$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    		query_posts("showposts=4&paged=$page");
    		?>
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    		<?php get_template_part('content','archive'); ?>
    
    		<?php endwhile; ?>

    I am new to theme development... can anyone help me out?

    Thank you,

    John

  2. johndove523
    Member
    Posted 1 year ago #

  3. riversatile
    Member
    Posted 1 year ago #

    I found this topic :
    http://wordpress.org/support/topic/shotneing-post-lenght-on-frontpage?replies=12

    As your custom-blog-page.php file call the content/excerpt by using
    get_template_part('content','archive'); instead of the_content or the_excerpt

    You have to make the change in your content.php file. For example, change :
    <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
    to:
    <?php the_excerpt(); ?>

    Regards

  4. johndove523
    Member
    Posted 1 year ago #

    Let me clarify, I want to see the_content, not the_excerpt. In my content.php file I have:

    <section class="entry">
    		<?php the_content(); ?>
    		<?php edit_post_link(__('Edit this entry','gravy'), '<p id="wp-edit">', '&rarr;</p>'); ?>
    	</section>

    Looks like it's pointing to the_content - ??

  5. johndove523
    Member
    Posted 1 year ago #

    Sorry again! I was looking at the wrong file. Still, it looks like it is pointing to the_content:

    <?php get_template_part('content','postmetadata'); ?>
    <section class="entry">
    <?php the_content(); ?>
    </section>

Topic Closed

This topic has been closed to new replies.

About this Topic