Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Professionals Using Helpful in your own WordPress theme

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:

<?php helpful_get_pro( $post_id ); ?>

So you can output the cons of a single post:

<?php helpful_get_contra( $post_id ); ?>

So you can output ALL pros from Helpful:

<?php helpful_get_pro_all(); ?>

So you can output ALL cons from Helpful:

<?php helpful_get_contra_all(); ?>

Basic use of the functions:

<?php 
/* 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 post helpful?