• Resolved firstheartbeat15

    (@firstheartbeat15)


    I created a separate page for posts and i used foreach.

    How can i display the sharing buttons inside the foreach??

    Example.
    Below is a code from another plugin “addthis”
    and they used this.

    do_action(‘addthis_widget’,get_permalink($post->ID), get_the_title($post->ID), ‘below’);

    For addtoany plugin, how can i do this?

    https://ww.wp.xz.cn/plugins/add-to-any/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not working inside foreach’ is closed to new replies.