1. Home
  2. Docs
  3. WTI Like Post PRO
  4. Shortcodes

Shortcodes

The plugin is also rich with shortcodes. Let’s discuss one by one here.

[wtilp_buttons]: This is used in case you want to show the buttons inside the post/page content irrespective of the plugin admin position setting. All other settings will be used. Please note this will work only when placed within the post/page content using the editor. This can not be used as a standard wordpress shortcode.

If you are trying to load the buttons in theme files, then you can use <?php GetWtiLikePost()?> inside the post loop.

[most_liked_posts]: When you want to show the most liked/unliked posts/pages on a single page, you can do this by simply adding this shortcode in the page content area.

[my_most_liked_posts]: If you want to show the most liked posts/pages by a specific user, then you can do this by simply adding the following code in the page content area.

Note: In this case user needs to be logged in to see the posts list. The arguments are same as most liked posts shortcode.

How can we help?