Timeline for ACF: How to make get_field() ignore the main wp query?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 12, 2019 at 19:24 | answer | added | AdamJones | timeline score: 0 | |
S Feb 11, 2019 at 15:48 | history | suggested | Pratik Patel | CC BY-SA 4.0 |
Improved formatting
|
Feb 11, 2019 at 14:43 | comment | added | mrben522 |
I don't know if ACF sets anything you can check when it's running a query, if it does then I'd use that in the pre_get_posts filter. Otherwise I would use a singleton class and set a flag variable when calling the function that uses get_field then check for that variable in the pre_get_posts filter
|
|
Feb 11, 2019 at 14:15 | review | Suggested edits | |||
S Feb 11, 2019 at 15:48 | |||||
Feb 11, 2019 at 14:14 | history | asked | AdamJones | CC BY-SA 4.0 |