Not working on Custom Post Type
-
Hello. The plugin works ok for the normal post types and also for one custom that I created (I have 2 custom post types). Let’s say it works for custom post type A, but not for B.
I tried everything. From clicking many different settings to using a shortcode and widget.
[cresta-social-share] in a text widget
add_filter(‘widget_text’, ‘do_shortcode’); // in functions.phpI tried to use the shortcode directly in the theme with echo do_shortcode(“[cresta-social-share]”), but no success.
Also this doesn’t work:
if(function_exists(‘add_social_button_in_content’)) {
echo add_social_button_in_content();
}The IF actually happens, but nothing shows up. The functions does nothing.
- The topic ‘Not working on Custom Post Type’ is closed to new replies.