Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pixelbart

    (@pixelbart)

    Hello! Currently not. I wanted to keep the plugin as simple as possible. But maybe this is a feature for an update.

    Plugin Author Pixelbart

    (@pixelbart)

    Hey @mending,

    i’ve added a shortcode, in the last version. Just use [helpful]. You can hide helpful in your posts, by check the option in the general section. (also added)

    Greetings

    Thread Starter mending

    (@mending)

    Hi,

    Thanks! But is it only possible adding the [helpful] shortcode to a WP page or post? Can’t it be added to a PHP file i.e. like this:

    <!-- #page-header -->
    <header id="page-header" class="clearfix">
    <h1 class="page-title"><?=$wp_query->found_posts;?> <?php printf( __( 'Search results for: %s', 'framework' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    <p><?php _e( "This is what we found...", "framework" ); ?></p>
    </header>
    
    [helpful]
    <!-- /#page-header -->

    ?

    Plugin Author Pixelbart

    (@pixelbart)

    Hi,

    so Helpful musst be placed inside the wordpress loop. But if you want place a shortcode via PHP you can use do_shortcode(‘[helpful’]).

    More information you can find here: do_shortcode();

    Greetings

    Plugin Author Pixelbart

    (@pixelbart)

    Helpful only works inside post-types e.g.: posts, cpts, pages, products… not in search.php, or something else.

    You can please helpful after $post->the_post; and before endwhile; inside from posts.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Place “Helpful” with Shortcode?’ is closed to new replies.