-
Notifications
You must be signed in to change notification settings - Fork 0
Example Usage
Pascal Birchler edited this page May 11, 2017
·
1 revision
By default, the plugin doesn't display any like button on the front end by itself.
The following example code adds the post like count at the beginning of the_content
and the post like button at the end of the_content
:
add_filter( 'the_content', function( $content ) {
return get_rest_post_like_count() . $content . get_rest_post_like_button();
} );
This is pretty basic and would look something like this:
As you can see, the theme's default styling is utilized. The plugin itself doesn't contain any CSS.