Shortcodes

Display CTA (Like/Dislike) Button

[wp_ulike]

Parameters ( attributes ):

  • for (string) : select item type. (Available Values: postcommentactivitytopic)
  • id (integer) : select specific item ID. (For manual usage)
  • button_type (string) : Set Button Type. (Available Values: imagetext)
  • style (string) : Choose the default template from the available list.
  • wrapper_class (string) : Extra Wrapper class.

Using shortcode in the PHP template:

echo do_shortcode('[wp_ulike for="post" id="1" style="wpulike-heart"]');

Can I use multiple buttons on one page?

For this purpose, you need to use a custom ID for each shortcode. e.g.

[wp_ulike  id="99999"]

Display Counter Value

[wp_ulike_counter]

Parameters ( attributes ):

  • type (string) : Select item type. (Available Values: postcommentactivitytopic)
  • id (integer) : Select specific item ID. (For manual usage)
  • status (string) : Distinguishes which data status to be shown in the results. (Available Values: like, dislike, unlike, undislike)

Display Likers List

[wp_ulike_likers_box]

Parameters ( attributes ):

  • type (string) : Select item type. (Available Values: postcommentactivitytopic)
  • id (integer) : Select specific item ID. (For manual usage)
  • counter (integer) : Item show at most.
  • style (string): Select likers box style.
  • avatar_size (integer) : Pixel value for Avatar size.
  • template (string): This attribute contains an HTML structure similar to the one placed in the settings panel. for example:
<div><br>    %START_WHILE%<br>    <span><br>        <a href="#" title="%USER_NAME%">%USER_AVATAR%</a><br>    </span><br>    %END_WHILE%<br></div>

* Allowed Variables: %USER_AVATAR% , %BP_PROFILE_URL% , %UM_PROFILE_URL% , %USER_NAME% , %START_WHILE% , %END_WHILE%

User Info Display [PRO]

[wp_ulike_pro_user_info type="data_counter"]

It’s the default code, which can show any user’s activity in post, comments, activity, and topic such as like, dislike, unlike, and undislike.

Parameters ( attributes ):

  • user_id (integer): Select specific user ID. (For manual usage)
  • type (string) : Determines which type of data from the user will be shown. (Available Values: data_counterlast_activitylast_status)
  • table (string) : Select item type table. (Available Values: postcommentactivitytopic)
  • status (string) : Distinguishes which data status to be shown in the results. (Available Values: like, dislike, unlike, undislike)
  • before_text (string) : Custom prefix text to display before value.
  • after_text (string) : Custom postfix text to display after value.
  • empty_text (string) : Display custom message if value is empty.

Get Items List [PRO]

[wp_ulike_pro_items type="post" rel_type="post" status="like"]

Parameters ( attributes ):

  • type (string) : Select item type table. (Available Values: postcommentactivitytopic)
  • rel_type(string) : Use this option to select post types. (When type attribute equals to post)
  • user_id (integer) : Select specific user ID. (For manual usage)
  • anonymize_user(boolean) : Enable this option to display the items for not logged in users.
  • status (string) : Distinguishes which data status to be shown in the results. (Available Values: like, dislike, unlike, undislike)
  • is_popular (boolean): Enable items to be sorted by the number of likes.
  • limit (integer) : Item show at most.
  • empty_text (string) : Display custom message if query is empty.

User Profile [PRO]

[wp_ulike_pro_completeness_profile user]

Parameters ( attributes ):

  • user_id (integer) : it determines which user info to show in the result.
  • force_current_user (boolean) : Changes the current user based on profile ID.

Login Form [PRO]

[wp_ulike_pro_login_form form_id="1"]

Parameters ( attributes ):

  • form_id (integer) : Custom form id.
  • username (string) : Username label.
  • password (string) : Password label.
  • remember (string) : Remember me label.
  • button (string) : Submit button label.
  • reset_password (string) : Forgot password label.
  • reset_url (string) : Custom URL for reset password page.
  • signup_message (string) : Don’t have and account label.
  • signup_text (string) : Create account label.
  • redirect_to (string) : Custom redirect URL after success. ( You can also user ‘current_page’ value for current page redirect )

Signup Form [PRO]

[wp_ulike_pro_signup_form form_id="1"]

Parameters ( attributes ):

  • form_id (integer) : Custom form id.
  • username (string) : Username label.
  • firstname (string) : First name label.
  • lastname (string) : Last name label.
  • password (string) : Password label.
  • email (string) : Email label.
  • button (string) : Submit button label.
  • login_message (string) : Already have an account label.
  • login_text (string) : Sign in label.
  • redirect_to (string) : Custom redirect URL after success. ( You can also user ‘current_page’ value for current page redirect )

Reset Password Form [PRO]

[wp_ulike_pro_reset_password_form form_id="1"]

Parameters ( attributes ):

  • form_id (integer) : Custom form id.
  • reset_message (string) : Reset your password message.
  • change_message (string) : Enter your new password message.
  • mail_message (string) : Check your email message.
  • username (string) : Username or email label.
  • new_pass (string) : New password label.
  • re_new_pass (string) : Re-enter new password label.
  • invalidkey (string) : Invalid key message.
  • expiredkey (string) : Expired key message
  • reset_button (string) : Get new password button label.
  • change_button (string) : Reset password button label.
  • login_message (string) : Go to login page label.

Edit Account Form [PRO]

[wp_ulike_pro_account_form form_id="1"]

Parameters ( attributes ):

  • form_id (integer) : Custom form id.
  • firstname (string) : First name label.
  • lastname (string) : Last name label.
  • website (string) : Website label.
  • description (string) : Biographical info label.
  • email (string) : Email label.
  • avatar (string) : Upload avatar label.
  • button (string) : Submit button label.
  • permission_message (string) : You don’t have access message.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us