Wrong global $post
-
Hi,
Thanks for this very great plugin.I noticed a small bug (well, I think it is) :
When you use content visiblity on blue section in Divi Theme Builder, the wrong global $post is used, let me explain :If I use a function to control visibility of a section in theme builder, the global $post is filled with the theme builder post and not the post itself, neither get_the_post / get_post / global $post_id are working.
The unique way I got the post ID is with get_queried_object_id()Note that this bug is only on theme builder section, not on theme builder module/row/column.
Is this a bug or I misunderstand something ?
Have a nice day,
Alexandre
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Wrong global $post’ is closed to new replies.