ryanwelcher / block-developer-cookbook

31 stars 6 forks source link

Block that lists posts based on a meta query #18

Open troychaplin opened 1 year ago

troychaplin commented 1 year ago

I know you have this worked out in your advanced query loop plugin, but I feel this could be beneficial for custom block use from experienced developers who are accustomed to doing this in old school PHP via the wp_query.

A few example of sorting based on custom meta fields would be useful in this case. Using a handful of custom metadata fields would be useful to show examples of supporting by date (think event custom post type) or last name (think people custom post type). I'm sure there's others but these would be solid examples to start.