Display connected content using Posts to Posts plugin

The Posts to Posts plugin lets you to make connections between content types on your site. You could create a posts_to_pages connection for connecting relevant news articles to a specific page.

For further reading, see the Posts to Posts documentation and my tutorial on Manually Curated Related Posts.

With the code snippet below, you can display your connected content using Display Posts. To display the posts connected to the current page, use:

[display-posts connected_type="posts_to_pages"]

To display the posts connected to a different page (one with an ID of 1234), use:

[display-posts connected_type="posts_to_pages" connected_items="1234"]

This code snippet goes in a core functionality plugin or Code Snippets.

Filters used:

Published by Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributor to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.