Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chris

    (@zenation)

    Hi and thanks for the feedback.
    Unfortunately I see no way other than using something like Widget Logic at the moment.

    Though I do remember testing the implementation of a kind of black list for post IDs. But I’m not quite sure why I dropped it. Maybe there were consecutive issues or maybe it was simply impractical or maybe I just forgot to finish it? I will look into it over the weekend and get back to you.

    Plugin Author Chris

    (@zenation)

    Hi again.
    I’ve added a widget option “Hide on” that allows you to have a comma separated list of numeric post IDs. On those post the widget will not show up.

    You can also add page IDs since under the hood it’s all the same for WordPress.

    And it’s implemented in the latest plugin version v1.9.0.

    I use php code in single.php to display results..
    How to disable some posts with php ?

    Plugin Author Chris

    (@zenation)

    There’s been a bug in my code which hopefully is now fixed with version 1.9.3

    You now can exclude post IDs like this (this is taken and tweaked from the code example in the plugin documentation):

    $data     = $RytvAPI->validateConfiguration(
        array(
         'relation' => 'keywords',
         'keywords' => 'monthy mython',
         'max'      => '1',
         'width'    => 150,
         'height'   => 150,
         'lang'     => 'en',
         'region'   => 'de',
         'class'    => 'left center inline bg-black',
         'preview'  => true,
         'exclude'  => '1,2,3' // list of post IDs where no video should show up
        )
      );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable on some posts’ is closed to new replies.