How can I filter posts by data in a related post type’s ACF field?

[ad_1]

At the moment, I’ve got my data organized into two custom post types that I created with ACF called `objectives` and `routes`. I’d like to add a filter on my `objectives` archives page so that the user can filter out objectives based on a field within `routes` called `distance`. Basically something like “of all these objectives, show me those that are under 5 miles in distance (e.g.).”

I’m looking for suggestions for plugins, code snippets, examples, etc., that I could use to achieve this.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer