WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts for WordPress
Need related post pulls the excerpt or an Advanced Custom fiel (3 posts)

  1. jmbalsa
    Member
    Posted 2 years ago #

    Hi there, I need this plugin to pull in the widget the excerpt or an advanced custom field. Or even the title of the post, but always pulls the title, excerpt or custom field of the current article.
    Here is my code:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    thanks

    http://wordpress.org/extend/plugins/microkids-related-posts/

  2. bajola
    Member
    Posted 1 year ago #

    I am looking for this solution too. Have you solved it?

  3. bajola
    Member
    Posted 1 year ago #

    I got it, but you have to fill the excerpt in the post first. This doesn´t work with the automatic excerpts. Than you have to edit the php microkids file on the right place, where you want to have the excerpt.

    You can call the excerpt like this:
    $output .= "<p>".$related_post->post_excerpt."</p>";

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.