Home › Forums › General Issues › get_posts filtered by custom field very slow › Reply To: get_posts filtered by custom field very slow
In the meantime I found these statements:
– Using meta queries to find posts is super expensive
– Post meta isn’t built for filtering
– Taxonomies were built for filtering, and they’re significantly faster for this
– Post meta is designed for when you already know which posts, so get_post_meta is a fast function
Someone suggested, to read out all entries with get_posts without filtering, and then do an extra loop with this output, to filter the entries.
Is this really the only solution? And if so, could anyone help me to do this?
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.