Let's say my nation has two blogs - a fruit blog and a technology blog.
On the front page of the nation I want to show the last three posts from the fruit blog tagged with "apple." But I don't want posts from the tech blog that are tagged with "apple" showing there, let alone an event page or a petition page tagged "apple."
I can probably show the last three posts from a given blog, and I can probably show the last three things tagged "apple," and how do I should the last three posts that have both those qualifications.
Are there liquid markup filters or tags that faciliatate displays like this?
Official response from Taylor Pineiro
Please see below for some suggestions!
Share this post
Showing 11 reactions
Sign in with
apple-blog
apple-site
apple-event
You can create as many tags as you need, but it’s a good idea to have an internal tag strategy so that everyone in your organization can contribute consistently.
Certified Architect
Certified Developer
Certified Architect
Certified Developer
Marjorie is filtering on slug. Jerimee, if that “tag” tag worked for you, then that’s the ideal solution!
Certified Architect
Certified Developer
{% subpage “blog” with “blog_latest” %} in the home page template.
Then, put all your logic (in your case: most recent, only apple) in a new _blog_latest.html file. It’ll pull only those posts from the blog whose slug is “blog.”
Certified Architect
Certified Developer
{% tag “apple” with “my_apple_posts” %}
So then the only thing to do is ensure that I’m only displaying posts from a given blog that are tagged “apple.” The tag object doc – http://nationbuilder.com/page_tag_variables – only has most recent and most recently updated options.
Can most_recent_blog_post_pages also be made available? What about most_recent_blog_post_pages with parent x?