Support » Plugin: WP ULike - Most Advanced WordPress Marketing Toolkit » Two different buttons with different role on the same page

  • Resolved vayier

    (@vayier)


    Hi,

    I have the following scenario and hopefully WP Ulike is up for that.

    I need two buttons for each post :
    – The first one to bookmark the post
    – The second one to like the post

    Is it possible to have two buttons with different role on the same page ?
    How can I make the difference between them through the shortcode (in order to get specific and different data into the database)? By an ID ?

    Thanks for response !

    • This topic was modified 8 months, 2 weeks ago by vayier.
Viewing 1 replies (of 1 total)
  • Plugin Author Alimir

    (@alimir)

    Hey @vayier
    We do not recommend this, but you can have two buttons with different ids. for example you can use default post ID for bookmarking and generate another ID for the Like button that is different from the post ID ranges! e.g.

    
    echo do_shortcode('[wp_ulike');
    echo do_shortcode('[wp_ulike id="'. get_the_ID() * 12345 .'"');
    
Viewing 1 replies (of 1 total)
  • The topic ‘Two different buttons with different role on the same page’ is closed to new replies.