Home › Forums › General Issues › MySql Query for custom search engine › Reply To: MySql Query for custom search engine
Hi @filogti
No worries. ACF is really just a UI for the native custom fields in WP. Therefore, you can use all the functions that WP offer to query posts in the DB based on custom fields.
You should take a look at the get_posts function. It uses the same args as the WP_Query object and allows you to query the database.
Good luck
Cheers
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.