• Hey folks, I have a very simple question relating to microkid’s related post plugin that may be solvable by someone who doesnt know the plugin, but is more familiar with PHP than I am. Here it is:

    The plugin allows me to display a list of related posts by title, content, or both, but all of my posts are generated through custom fields (I’m using flutter as a CMS). I am wondering if there is a way to get the plugin to not just diplay a list of post titles, but also a list of custom fields from those posts (for example, the title and a field called “description”)

    The plugin has some API functions which can be used to do this (I think) but the php involved is just a bit beyond me, here are the API functions listed on their site.

    Place this code in your template files (probably single.php) where you want the list of related posts to be displayed:
    MRP_show_related_posts();

    To get the output HTML without displaying it use this function:
    $related_posts_html = MRP_get_related_posts_html( $post_id )

    If you’re looking for further integration; this function will return the IDs and titles of related posts:
    $related_posts = MRP_get_related_posts( $post_id );

    It will return an array like
    $related_posts[related_post_id]->related_post_title

    Would any of those allow me to display custom fields?

    Thank you

Viewing 1 replies (of 1 total)
  • Thread Starter aaron-dziga

    (@aaron-dziga)

    If someone could even tell me the php functions and code involved in turning either of those API fucntions into a list that can display custom field values that would be great.

Viewing 1 replies (of 1 total)
  • The topic ‘[plugin: microkids related posts] Display custom field?’ is closed to new replies.