Posted in Code Snippet WordPress Wordpress Plugins

How to Embed Google Trends Graph in WordPress Posts And Pages

How to Embed Google Trends Graph in WordPress Posts And Pages Posted on January 25, 2014Leave a comment

Deepanker Verma is the CEO of Techlomedia and a full time blogger. On this blog, he shares web design resources, SEO tips blog monetization tips.

Google Trends WordPress
Best WordPress Hosting

Google Trends is very nice tool to find what people are searching around the world. It helps you in finding what is treding around you. If you are writing a post, it would be impresive if you add a trend graphs to show the latest trends. Do you want to embed Google Trends graph in your WordPress blog’s post or page? Try a simple code snippet to make short code. And use Google Trends graph in post easily.

Also Read: How to Create Your Own WordPress ShortCodes

Add the below code to functions.php file

Now, use this shortcode to add graph in post or page.

Here q is the search term for which you want to show the trend graph. By default the geolocation is set to United States. In case you want to change the location, you can change it in param while adding shortcode.

Advertisement

If you do not want to edit code, you can use Google Trends Shortcode plugin. It does the similar thing. After installing the plugin, you can easily embed the trend graph with same shortcode.

Source: WpSnipp

advertisement

Deepanker Verma is the CEO of Techlomedia and a full time blogger. On this blog, he shares web design resources, SEO tips blog monetization tips.

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Receive fresh web design resources and SEO tips in your email by our weekly newsletter

You have Successfully Subscribed!