WordPress.org

Ready to get started?Download WordPress

Forums

Get Post
Added excerpt (5 posts)

  1. wdwarren
    Member
    Posted 2 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!

    http://wordpress.org/extend/plugins/get-post/

  2. jtatum
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

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

  4. jtatum
    Member
    Plugin Author

    Posted 2 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.

    https://raw.github.com/jtatum/get-post/master/class-get-post-getter.php

  5. cvikasthakur
    Member
    Posted 2 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

About this Topic

Tags