đšBlog Filter by Author
Combining the Blog and Author Modules allows you to filter the Blog posts by a specific Author's posts.
Introduction
This article explains:
How to include the Browse by Author Option when including a Blog List
Default Layout Examples
How to give feedback to the User about their results e.g. in the screenshot "Posts by Regina Alexander"
Add "use_adv_search" parameter to include for Blog List View
The "use_adv_search" parameter is needed to allow filtering from the URL to apply to your Blog Posts, this can be added to the include for Blog List like so:
To Include this Option
Include the following liquid to dynamically get a list of available Blog Authors for the User to select.
The author_field
will be module_field_3_4
if you are using Siteglide's Authors Module. The layouts are structured in the same way as Category Layouts in the previous section.
Default Layout Examples with Explanation
wrapper.liquid
item.liquid
To filter the Blog List View, you need a link to the Blog List View slug, followed by "?module_field_3_4={{this.id}}"
. Siteglide will be able to read the URL and filter the list.
User Feedback
To make it easier to give feedback to the User, you can optionally include the Author's name in the url:
On the List view, you can then include the following liquid to read the URL and decode the Author name you are currently filtering by:
Last updated