Support » Plugin: Related YouTube Videos » Exact match only ?

  • Resolved Keating

    (@spunko2010)


    Hi there

    I am using this plugin, it’s great! Only issue is that it seems to search the Youtube API via broad match. For example I have the KW as ‘evans.co.uk’ if you search for that on Youtube it returns several unrelated videos presumably based off the keyword ‘evans’.

    I want it to search only for “evans.co.uk” ie in quotes / exact match. This would return relevant videos. Please advise how I can change this?

    http://wordpress.org/extend/plugins/related-youtube-videos/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Keating

    (@spunko2010)

    Plugin Author Chris

    (@zenation)

    Hi and thanks for the feedback.

    I’ve looked into it and it’s a bit nerve-wracking: Single quotes, double quotes, URL encoding, WordPress vs YouTube vs PHP… 😉

    I couldn’t come up with a better and more usable solution than adding a new option, “exact”, which allows you to do a search for exact matches. It’s implemented in the latest plugin version (1.1.0) now.

    So if you’re using the shortcode you might want to add [relatedYouTubeVideos ... exact="true"].

    And if you’re using the widget there is a new “exact” checkbox that will turn this type of search on and off.

    Thread Starter Keating

    (@spunko2010)

    Hi thanks a lot! Although I’ve updated the plugin and the shortcode but it’s still not working and the results are the same (broad match still). here are my settings:

    [relatedYouTubeVideos relation="keywords" terms="'.$stores_url.'" max="1" exact="true"]

    $stores_url is in the format “domain.com”

    Plugin Author Chris

    (@zenation)

    Mhh.. that is weird. When I’m testing this

    [relatedYouTubeVideos relation="keywords" terms="evans.co.uk" max="1" exact="true"]
    [relatedYouTubeVideos relation="keywords" terms="evans.co.uk" max="1"]

    I’m getting two different videos.

    But I’ll keep looking into it..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exact match only ?’ is closed to new replies.