Question
Basically, you can't show the button and update the meta at the same moment. This has to be done in two separate requests as follows: Show the button whereever you want. It needs to be a form that submits to the same page (or an ajax call to another URL, but
0
Olivier 3 months 0 Answers 0 views

Question
The problem with using array_merge is that you can't use pagination. I really like @Andy Adams's solution, but if you're searching on many roles, using his meta query will result in a very slow query (internally it does a new INNER JO
0
blogjunkie 9 years 0 Answers 0 views