Skip to main content

How do I include content from specific page types on another page?

I've followed directions for how to include content from one page on another with a tag here:

http://nationbuilder.com/theme_documentation#display_content_from_pages_with_a_certain_tag_on_another_page

However, when I try to replace {% for post in tag.most_recent_published_pages limit: 5 %} with any other page type (i.e. upcoming_event_pages or most_recent_petition_pages) it doesn't give me any love! 

Official response from

You shouldn't need to replace most_recent_published_pages, as that is a catch-all for every type of page. For example, if you have a blog post page and a petition page both with the tag "california", both will show up. If you are intentionally trying to have only one specific page type show up, or are trying to style various page types differently, you can do that using conditional statements within the for loop (see type_name here).

Share this post

Showing 6 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.