Get Post
Added excerpt (5 posts)

  1. wdwarren
    Posted 4 years ago #

    Hi There

    I needed to add the excerpt of a post so I added the line

    $current = str_replace('{excerpt}', get_the_excerpt(), $current);

    to your get() function in class-get-post-getter.php

    I like how easy this plugin is to extend. Good work!


  2. jtatum
    Plugin Author

    Posted 4 years ago #

    Cool. I'll go ahead and put this in the code so it will be a part of the next release.

  3. ranieri71
    Posted 4 years ago #

    This sounds like something I could use. where exactly does this go in class-get-post-getter.php?

  4. jtatum
    Plugin Author

    Posted 3 years ago #

    Hi raineri71,

    If you get the latest version of the file from github, it has this in it already. I've been a little slow to release the version with the change included. Apologies. There are two things I want to add first.


  5. cvikasthakur
    Posted 3 years ago #

    Thanks for the plugin man. I modified it a bit to fetch a few more post details ( thumnails, Yoast SEO fields, comment count). Works like a charm.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic