Question

I'm using Advanced Custom Fields plugin and microkid Related Posts. I would like to display my custom fields inside Related post This is what I got so far?

<?php //related artworks

$related = MRP_get_related_posts( $post->ID, true, false, 'quote_list' );

//for testing related array
//print_r ($related);

if(!empty($related)) {
    foreach($related as $key => $value) {
        $related = get_post($value);
        $related_id=$related->ID;
        $related_content=$related->post_excerpt;
        $related_url=$related->get_permalink;
        echo "<div><h4>".get_the_title($related_id)."</h4></div>";
        //echo get_the_post_thumbnail($related_id);
        echo "".$related_content."<br/><br/>";
        echo "<a href=".get_permalink($related_id).">read more</a>";
        //for testing related array
        //print_r ($related);
    }

}?>

But how I would pull out my advanced custom field? Many thanks,

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top