• Hello

    In this page of my site I am displaying all my blog posts http://goo.gl/PtOfn6 but they are displayed in full text. I would like to display just a thumbnail image and a shor summary with the READ MORE button

    How do I do that?

Viewing 1 replies (of 1 total)
  • Hello,

    I can see you already have a child theme ( restimpo-child ). A+ for that.

    1. Copy content-archives.php file to your child theme.
    2. Edit that file in the new location, and find this bit of code:
      <div class="post-entry-content"><?php if ( $restimpo_options_db['restimpo_content_archives'] != 'Excerpt' ) { ?><?php global $more; $more = 0; ?><?php the_content(); ?><?php } else { the_excerpt(); } ?></div>
    3. update the code to:
      <div class="post-entry-content"><?php if ( $restimpo_options_db['restimpo_content_archives'] != 'Excerpt' ) { ?><?php global $more; $more = 0; ?><?php the_excerpt('100'); ?><?php } else { the_excerpt(); } ?></div>
      <a class="read-more" href="<?php echo get_permalink(); ?>"><?php _e( 'Read more >', 'restimpo' ); ?></a>

    And of course you can control how much to show in the excerpt. just change 100 to how much you want in the_excerpt('100');

    Notice: the excerpt wont show any HTML elements.

    Post a feedback if it worked, or further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying blog posts’ is closed to new replies.