Using shortcode $post = null
-
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.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Using shortcode $post = null’ is closed to new replies.