Get Post
Limit the characters in the post excerpt (6 posts)

  1. js2724
    Posted 3 years ago #

    Hi i have setup a page to display posts from a specific category. I would like to limit the characters that display from the post on the page. Currently the whole post displays on the page and i have it setup to show the last 5 posts so it makes the page long. Can i make it so that its a preview with a read more link? Below is the code i have on my page currently. Thank you

    [get-post category=news show=5]


  2. avenuegirl
    Posted 3 years ago #


    I too would love to just do an excerpt with the post.

    I saw some old code in a different thread here - but trying to put those lines in was not successful for me.

  3. Joe Kalis
    Posted 3 years ago #


    The old code in the thread you saw DOES work, I saw that and just did it successfully! Here's how:

    1) Visit the plugin creator's Github link where he has updated his codeset with the code you need: https://raw.github.com/jtatum/get-post/master/class-get-post-getter.php
    2) Copy & Paste everything in there.
    3) Go to your WP admin page & click on "Installed Plugins"
    4) Find "Get Post" and click on Edit
    5) Select the "get-post/class-get-post-getter.php" page from the picklist on the right
    6) Replace all that with the code you have copied in your clipboard & "Update File"
    7) Go back to your plugins list, find "Get Post" and click on "Settings"
    8) Change this:
    <div class="entry">{content}</div>
    To this:
    <div class="entry">{excerpt}</div>
    9) Refresh your site.
    10) Gasp.
    11) Enjoy.

  4. js2724
    Posted 3 years ago #

    @joeakalis - Thank you! That worked like a charm.

  5. Joe Kalis
    Posted 3 years ago #

    Awesome! Glad to hear it!

  6. avenuegirl
    Posted 3 years ago #


    Fantastic, and thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Get Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic