Notes Troubleshooting Tutorials WordPress

Complex/nested/relational tax_query and pre_get_posts troubles

I was recently tasked with modifying the admin search for a WordPress CPT to include a taxonomy dropdown filter that allowed the client to search a property by the number of bedrooms it contains as well as the type of home it was. The client wanted the search behavior to return properties with bedrooms greater than 1 if 1 was selected and greater than 2 if 2 was selected, etc. During this attempt, I thought…

Continue reading