• Resolved clickroom

    (@clickroom)


    The plugin works great on the single.php template using the shortcode, but is it possible to display the number of individual likes on the Posts Page, in my case the index.php template?

    I’ve tried adding the shortcode to the template within the loop but nothing appears?

    Any help would be appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author oacstudio

    (@oacstudio)

    Hi @clickroom,

    In general you can add a shortcode with <code>do_shortcode</code>. That should also work in the loop. Something like this (untested code, but you get my drift):

    if ( have_posts() ) {
        while ( have_posts() ) {
            the_post();
            echo do_shortcode( '[shortcode]' );
        }
    }

    What code are you using?

    Kind regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Display likes on index.php or Posts Page’ is closed to new replies.