Using Helpful in your own WordPress theme

With the so-called Helper functions Helpful can be integrated into your own WordPress theme. These functions can be used, for example, to output the Helpful values for the current post.

So you can output the pros of a single post:

helpful_get_pro( $post_id );

So you can output the cons of a single post:

helpful_get_contra( $post_id );

So you can output ALL pros from Helpful:


So you can output ALL cons from Helpful:


Basic use of the functions:

/* using wordpress global */
global $post;
helpful_get_pro( $post->ID );

/* using get_the_ID inside post loop */
helpful_get_pro( get_the_ID() );
Was this helpful?