WordPress plugin posts 2 posts allows you to use shortcodes like p2p_connected and p2p_related to display connected custom post information. If you want to display the_content()
or echo get_the_content()
from the connected post(s) in the loop, you need to use the following snippet. Otherwise, the_content will just duplicate the content of the primary post from which you are querying from.
1 |
echo get_post_field('post_content', $post->ID); |