WTI Like Post
[resolved] Exclude page IDs (8 posts)

  1. glispread
    Posted 2 years ago #

    I didn't understand how I have to write the IDs page to exclude.
    I tried so (for example for IDs pages 220 e 221):

    220, 221

    Is it correct? In my site the plugin continues to be visible.

    Thanks for your help.


  2. webtechideas
    Plugin Author

    Posted 2 years ago #

    It should work. You can also remove the spaces in between like the values should be given as 220,221. Are you sure you are putting this value against the field saying "Exclude post/page IDs"? Also how you are getting the page IDs?

  3. glispread
    Posted 2 years ago #

    To get IDs pages I go into the WordPress admin panel then I go to Menu.
    Then I hover over the page that I want to know the ID of.
    So I see the ID in the status bar on the bottom of the browser.

    Is it correct?

    If it is correct, the plugin in my case doesn't work.

    Any idea? Thanks.

  4. webtechideas
    Plugin Author

    Posted 2 years ago #

    Can you better pick up the page ids from Admin >> Pages listing screen by hovering over the Page names? If it still does not work, then I would like to get the following things from you.

    - the version of the WTI Like Post plugin you are using whether its the lite 1.4 version or the PRO one.
    - screenshot of the WTI Like Post admin settings page where you have entered the page IDs to be excluded.
    - your site url. Also can you please use default permalinks settings so that I can confirm the page IDs on your site.


  5. glispread
    Posted 2 years ago #

    I solved with your help.
    The IDs from Menu panel are different from those of Pages list (sorry, but WP is new for me).

    Now the plugin works.
    Thanks for all. Piero

  6. naveenbos
    Posted 1 year ago #

    I want to exclude your like posts(thumps up/down) from a Q/A plugin, how can i do this? if i add that question id fro excluding it will work, but i nee dmore generic way to solve this problem,if i post any questions from this plugin your like buttons are coming, how can i remove your like buttons posts under the questions category?

  7. naveenbos
    Posted 1 year ago #

    I found that each question rendering through the qa/default-templates/single-question.php,I have added the below code in that page but it is not working, still it showing the like post buttons. Any other methodes to removethe like post buttons from each questions post.

    add_filter('the_excerpt', 'removeWtiContent');
    function removeWtiContent($content)
        global $post;
        if ($post->post_type == 'your_post_type') {
            remove_filter('the_content', 'PutWtiLikePost');
        return $content;

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  8. webtechideas
    Plugin Author

    Posted 1 year ago #

    You need to put the code inside functions.php file of your active theme. By post type, I mean the custom post type that you are using for questions.

    You must have installed a theme or plugin to create this functionality. So you need to use that post type in the condition as I had mentioned.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WTI Like Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.