WordPress.org

Ready to get started?Download WordPress

Forums

Simple Google News
google search parameters (6 posts)

  1. dianaascher
    Member
    Posted 9 months ago #

    Great plugin. Any chance you could incorporate Google's search parameters? (https://support.google.com/websearch/answer/136861?hl=en)

    I'm particularly interested in generating a search like this:

    [google_news query="search term site:scholar.google.com"]

    and would prefer to have the ability to enclose terms in quotes to search for a particular phrase like this:

    [google_news query="'find this whole phrase' site:scholar.google.com"]

    Many thanks,
    Diana

    http://wordpress.org/plugins/simple-google-news/

  2. Kevin Spence
    Member
    Plugin Author

    Posted 9 months ago #

    Diana,
    Thanks for the excellent feedback.

    I modified the plugin, and it now supports what you're asking for.

    If you're using the widget, just wrap everything in quotes in the 'query' field. For example, "search term site:scholar.google.com"

    If you're using the shortcodes, you just have to be careful with how you wrap the quotes. For example, if you wanted to search for an exact phrase (let's say Android sales), and you only wanted results returned from Engadget, you would do this:

    [google_news query='"android sales site:engadget.com"']

    If you run into any problems with this, please let me know.

    Thanks!

    Kevin

  3. dianaascher
    Member
    Posted 9 months ago #

    Wow, Kevin!

    Thanks so much for working on this--and so quickly!

    I'm still having a little trouble, and I', sure it's something obvious that I'm missing.

    Here's the search I want to execute as it appears on Google:

    "productivity paradox" site:scholar.google.com

    and here's what Google returns: (image removed, but it returns exactly what I'm seeking)

    So when I'm in WordPress and use the Simple Google News Plugin, I tried this shortcode:

    [google_news query="'productivity paradox' site:scholar.google.com"]

    and nothing returned. Then I tried switching the quotation mark types:

    [google_news query='"productivity paradox" site:scholar.google.com']

    but still nothing returned. Is it because the site is a subdomain? Is there something I'm doing wrong?

    I'm so sorry to bother you after you already worked on this.

    Best,
    Diana

  4. Kevin Spence
    Member
    Plugin Author

    Posted 9 months ago #

    No problem!

    I think the issue here is that scholar.google.com is not a site included in Google News (you can see for yourself by going to news.google.com and typing in site:scholar.google.com).

    So there would never be any results returned.

  5. jabellas
    Member
    Posted 6 months ago #

    At the risk of reopening a stale thread. I don't think that enclosing a phrase is single quotes is working. WordPress 3.7 and the latest version of the plugin. The site is not public so I can't provide a link but here is the shortcode i am using [google_news query="'AIDS Action Committee'"] Results returned indicate that it is not keeping the term as a phrase.

    Thanks in advance

  6. dianaascher
    Member
    Posted 6 months ago #

    Hi again,

    I really love this plugin, but I still can't get it to search for an exact phrase. For example, if I set up a query: [google_news query="'Diana Ascher'"] I will get news articles containing 'Diana" and/or 'Ascher' rather than only those articles containing the phrase 'Diana Ascher'. I've tried all sorts of permutations with single and double quotes, but I can't get it to work. I'd appreciate your guidance.

    Best,
    Diana

Reply

You must log in to post.

About this Plugin

About this Topic