Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor pronskiy

    (@pronskiy)

    Hi,

    I recommend to use bulk edit for such cases.

    The plugin persists its data in the table wp_options, option_name = sep_exclude.
    You can get the value by querying:
    SELECT * FROM wp_options WHERE option_name = 'sep_exclude';
    The value is a serialised PHP array of post ids to be excluded.

    If you have a list of post ids that you want to exclude manually, then you could do it in two ways. Let’s say you want to hide posts 213, 1, 43, 7.

    1. run php: php -r 'echo serialize([213, 1, 43, 7]);'
      run MySQL Query: UPDATE wp_options SET option_value = '%string_from_the previous_step%' WHERE option_name = 'sep_exclude';
    2. Add following to your functions.php:
      $pluginSearchExclude->savePostIdsToSearchExclude([213, 1, 43, 7], true);
      After you added it, open any page of your WP site, and then you can remove it.

    However, I would recommend you to use bulk edit for mass updating. This plugin supports it.

    Roman

    Thread Starter lemontreefruit

    (@lemontreefruit)

    cool, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excluded searches persisted?’ is closed to new replies.