WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] Show post list on Static Page (5 posts)

  1. TheaS
    Member
    Posted 1 year ago #

    I am loving the simplicity of this plugin! Thanks for developing it.
    However, I would like to post a short list of the latest posts on my static home page, instead of excerpts.
    So I'm guessing somewhere I need to be able delete 'div class entry summary' (leaving just the title) and put the href around the title instead of the 'read more' sign? Where can I do this? Or is there another way to get this result?
    I am using the Suffusion theme.
    Link to the static page: http://www.schakelnieuwbouw.nl/home/
    Thanks so much!

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

  2. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Howdy TheaS,

    Glad you're digging the plugin. :)

    Since this plugin is using the_excerpt by default, it won't show the full post unless you modify the output template file to use the_content instead.

    In the current version of the plugin, this is on line 3 of the posts_loop_template.php file.

    I'll be cleaning up some of this code for readability, so its position could change in the next version, but I'll try to remember to update this thread.

    Hope that helps.

    Eric

  3. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    Hey TheaS,

    Quick update: I just updated the plugin to version 1.0.8.

    This version now contains better commenting in the posts-loop-template.php file along with a warning to copy the file to your theme directory if you modify the file so it's not overwritten on plugin upgrade.

    Also, now the_excerpt is on line 9.

    I hope that helps,
    Eric

  4. TheaS
    Member
    Posted 1 year ago #

    Hi Eric,
    Thanks for the very speedy reply!
    I ended up deleteing everything in the posts-loop-template.php file except
    <div class="entry-title">"><?php the_title(); ?></div> (changing h2 to div)
    and now it's doing exactly what I wanted - which was give me a list of the most recent posts to put on my static home page.
    (Of course I did save your original code in notebook just in case I need it back to excerpts in future!)
    Thanks so much for the help,
    Thea

  5. Eric Amundson
    Volunteer Moderator
    Plugin Author

    Posted 1 year ago #

    You're quite welcome, Thea. :)

    If you haven't already, make sure to copy your altered template into your current theme file so it's preserved when you update.

    Cheers,
    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic