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
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
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.
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
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