Support » Plugin: WP ULike » Plugin: WP ULike

  • mamil

    (@mamil)


    Hello –

    I’d like to use more than one like button on same custom type page to like different parts of the content. Would this be possible?

    Kind regards,
    Maria

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alimir

    (@alimir)

    Hi @mamil

    From wp ulike +3, You can use our shortcode with custom types and IDs. So, if you want to have a so-called “like button” in a single post, you’ll need to use the other post IDs in the shortcodes. e.g.

    [wp_ulike id="1"] [wp_ulike id="2"]

    Supported Attributes:

    array(
    	"for"           => 'post',	//shortcode Type (post, comment, activity, topic)
    	"id"            => '',		//Post ID
    	"slug"          => 'post',	//Slug Name
    	"style"         => '',		//Get Default Theme
    	"attributes"    => '',		//Get Attributes Filter
    	"wrapper_class" => ''		//Extra Wrapper class
    )

    @alimir

    This is awesome, thank you.

    I’m using [wp_ulike id=”1″] [wp_ulike id=”2″]. When I like it, the thumbs up changes color, the green message displays, and the count is 1. If I refresh the page, the thumbs up keeps the color and the state of have liked it. However, the count displays zero. If I look in another browser, the count is still zero.

    Please advise.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.