I think I figure it out on my own. I looked into code and I see the differences. In my theme I replace the_content() to get_the_content() with bunch kind a things and it’s not work so I return to the_content() and everything work fine 😀
It’s exactly that. The plugin leverages WordPress hooks to attach the widget. Based on settings the widget could be added to:
- WordPress core elements
the_content
the_excerpt
comment_text
- BuddyPress elements
bp_activity_entry_meta
bp_activity_comment_options
bp_after_group_header
bp_after_member_header
- BBPress elements
bbp_get_forum_content
bbp_get_forum_content
bbp_get_forum_content
- WPFORO elements
wpforo_content_before
wpforo_content_before
wpforo_template_buttons
If you have a widget or a theme that overrides the original behaviour, the widget will not be visible, unless you add it in other ways.
Here are two different ways to add reactions widget programmatically:
// Call renderer from class
echo DaReactions\Frontend::getButtonsPlaceholder( 'post', 1 );
// Use shortcode
echo do_shortcode( '[reactions type="post" id="1"]' );
@danielealessandra Thank you for your reply and for the information on which hookahs the plug works 😉