Duplicate Queries

Question

While using the query monitor plugin I could notice I am making a database query 4 times. I am using OPP. So I have a method that gets me a list of posts by querying the database.
I have to do this 4 times to allow the user to select the post. I am curious if there is any method by which I can store it and use where ever needed? So making it a single query. ( I am actually querying the list of all ACF fields)

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/duplicate-queries/">

Duplicate Queries</a>
0
, , Latheesh V M Villa 7 months 0 Answers 61 views 0

Leave an answer