Google Charts In Wordpress
I want to display a Google Graph in a Wordpress Page. I've leared here that Wordpress seems ok with Javascript. So I've created a Page with a basic code in it (it's the GCharts'exa
Solution 1:
And the solution is ... DO NOT LET EMPTY LINES in the javascript code in your Page
Solution 2:
If you are okay with having unfiltered HTML on your WP installation, you can try this plugin:
http://pp19dd.com/wordpress-plugin-include-custom-field/
As the name suggests, it lets you use shortcodes to insert custom fields inside posts. You create a new custom field, call it "chart", dump all that JavaScript and HTML in there.
Then, in your wordpress post, just type [include chart] wherever you want it in the text. This shortcode should let you neatly separate the useful but picky WYSIWYG editor and the tender, breakable parts.
Post a Comment for "Google Charts In Wordpress"