Support

Account

Forum Replies Created

  • That is what i tried to show in first post:

    1. In custom page template file (so global $post variable is set already) i create secondary loop using get_pages() (btw using WP_Query doesnt change anything).

    2. I iterate through get_pages() results and use setup_postdata() to set global variables up.

    3. Right before get_field() call i check $post value and its correct. Right after the call i check $post again and see that now it holds value of global $post.

    4. Whole this thing seems happens only on first iteration. The rest of the loop data seems correct.

    Finally if im commenting out get_field() call then $post values are correct for entire secondary loop. So i am pretty sure that whole this thing has something to do with ACF 🙂

  • Just an internal function i use for debugging. It saves variable state. I kept it in snippet to show that value of $post is checked right before and after of call of get_filed() function.

  • Was this idea actually implemented? Being able adjust position of option page in menu is nice thing…

Viewing 3 posts - 1 through 3 (of 3 total)