1. Home
  2. Docs
  3. WTI Like Post PRO
  4. Custom Post Type Compatibility

Custom Post Type Compatibility

This version can be used with custom post types. It will automatically work with those post types which use the_content and get_the_excerpt filters for showing the post content and excerpt. If they don’t use such filters, then you can use the template tag <?php GetWtiLikePost()?> for showing the like/unlike buttons. For post content, you can also use the code [wtilp_buttons] anywhere inside the post content using the content editor.

You can also show the most liked content for custom post types using shortcode and widget. In case of shortcode, you need to pass it as an argument like post_type=”custom_post_type” where as in case of widget, you just need to enter the custom post type in the given text field.

How can we help?