Post List components query can be customized using the wpak_posts_list_query_args filter hook.

Internally, WP-AppKit Post List components’ queries are WP_Query objects. So basically, all customization that can be done on WP_Query objects can be done on Post List components. See https://codex.wordpress.org/Class_Reference/WP_Query to have an overview of all the taxonomies / meta ordering / filtering possibilities that you can apply to Post List components using the wpak_posts_list_query_args filter.

Here’s an example of how to customize the query so that the posts of our my-component-slug component can be sorted by alphabetical order instead of default chronological order:

Published by Mathieu on January 26, 2017

Freelance Senior Web Developer, WordPress since 2009, JS/Backbone since 2012, Custom Back-End devs, WebApps and Plugins for clients and the community.

Leave a Reply

Your email address will not be published. Required fields are marked *

Having questions?

FAQ | Tutorials | Documentation

Or

Contact Us