WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] Put in a 'Read more....' link? (9 posts)

  1. meadwench
    Member
    Posted 1 year ago #

    I was wondering what the shortcode syntax would be to put a 'Read More...' link at the bottom of the posts showing in the page?

    Thanks for a great plugin!

    Vicky Rowe

    http://wordpress.org/extend/plugins/posts-in-page/

  2. meadwench
    Member
    Posted 1 year ago #

    Ha! Figured it out. I just added code to the template output file to show it, and voila, there it is!!

  3. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Hi meadwench,

    Great name! :)

    Great question too and one you apparently figured out on your own.

    You got the answer; you can modify the template file to change the output as you see fit.

    By default, it uses the_excerpt() but you can tweak it as you see fit.

    One note: if you tweak the template file within the plugin, you'll want to copy, or move, the altered template file to your theme directory so it's not overwritten when the plugin is updated.

    Hope that helps.

    Eric

  4. meadwench
    Member
    Posted 1 year ago #

    Yep, followed your instructions in the main page and did that. Thanks again!

  5. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Quite welcome. :) Have a great week!

  6. Martin Schreader
    Member
    Posted 1 year ago #

    Can someone provide a step-by-step for this process, please?

  7. lmenara
    Member
    Posted 1 year ago #

    I'd appreciate a step-by-step as well!

  8. sam.walters
    Member
    Posted 1 year ago #

    Martin Schreader and Imenara

    as said above (if you tweak the template file within the plugin, you'll want to copy, or move, the altered template file to your theme directory so it's not overwritten when the plugin is updated.)

    and add this `<a href="<?php the_permalink(); ?>"?>Read more..</a>' to the EXCERPT like below.

    <!-- This is the output of the EXCERPT -->
    	<div class="entry-summary">
    		<div class="featured-image">
    			<?php the_post_thumbnail( array(180,9999), array('class' => 'alignleft')); ?>
    		</div>
    		<?php the_excerpt(); ?>
    		<a href="<?php the_permalink(); ?>"?>Read more..</a>
    	</div>

    yours might be slightly different to mine as iv been editing mine. but it should work the same

  9. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Thanks sam!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.