$post = null using shortcode in custom loop
-
I am using the shortcode to generate social sharing links in a custom post loop and am dynamically passing in the urls (see my previous post support ticket here). This is throwing php notices every post as in super-socializer/inc/social_sharing.php
the_champ_prepare_sharing_html()is declaring$postas global. In this use case$post = null. This can be fixed by addingif (NULL === $post) { $post = get_post($shareCountTransientId); }on line 14.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘$post = null using shortcode in custom loop’ is closed to new replies.