The documentation advised most datatables functions will work within IGSV. Has anyone seen a table with the data seperated in groups? I’ve tried various query shortcode but have not had any luck. I am not even sure it is possible in IGSV. Anyone?
]]>Title.
]]>Query works, plugin does not. Is it possible to hide blank rows that are rendering as a result of uneven amounts of data across the entire google doc?
]]>[gdoc key="https://docs.google.com/somethingsomething" query="select A, B, C"]
Does not work. to display only columns A B and C.
Thank you.
Hey guys, after racking my brain trying to figure this out for the better half of my Sunday morning I’m coming to you in desperate need for some fresh brain cells.
I’m embedding the following google sheet into my fathers work website. He basically wants to be able to show clients where they stand in the work queue.
Link to google spreadsheet:
https://docs.google.com/spreadsheets/d/12_4PVWLQHjeh4eraPT8IF1O7FpjlPBN06n4JkKSAIqs/edit?fbclid=IwAR3N4ZkDVkVFloEaOg5iIj48u0-h1MCNLDlz694zGsWtrJDcIkolS-atNTs#gid=1386834576
I was able to embed the spreadsheet with the following
shortcode:
[gdoc key=”https://docs.google.com/spreadsheets/d/12_4PVWLQHjeh4eraPT8IF1O7FpjlPBN06n4JkKSAIqs/edit?fbclid=IwAR3N4ZkDVkVFloEaOg5iIj48u0-h1MCNLDlz694zGsWtrJDcIkolS-atNTs#gid=1386834576″ class=”no-responsive stripe cell-border”]
The issue I’m having is that it appears to be sorting the data in an odd way. I did attempt to sort the data using the shortcode documentation provided on the plugin homepage but it sorted the entire table…
Any help would be greatly appreciated. Thank you -Nathaniel
I have been struggling to find a way to include a IGSV table as a single cell within text. Countless hours have been used researching threads and Googling possibilities as the documentation within the plugin is insuffiecient. I have finally found a work-around using a third-party plugin.
Download and use the “Shortcoder” plugins from https://www.aakashweb.com
I was able to combine two IGSV tables along with text on one line using the below code. Basically, I included all within a HTML table …. as follows:
<table><tr>
<td>[gdoc key=”https://docs.google.com/spreadsheets/d/MYGOOGLESHEETID/edit#gid=1833743368″ query=”select AE limit 1 offset 2″ display=”inline” class=”no-datatables” use_cache=”no”] </td>
<td>is leading Men’s and</td>
<td>[gdoc key=”https://docs.google.com/spreadsheets/d/MYGOOGLESHEETID/edit#gid=1833743368″ query=”select AF limit 1 offset 2″ display=”inline” class=”no-datatables” use_cache=”no”]</td><td>is leading Womens!</td>
</tr></table>
It now renders all in one line:
“Bob White (4.02) is leading Men’s and Jane Doe (3.15) is leading Women’s!
It may not be the best, but it is a simple solution that seems to work!
]]>I did read Meitar’s complete guide, and I searched this forum and elsewhere.
In Google Sheets, my column with dates formatted like Dec 12 sorts properly. Does Inline…Viewer receive only the displayed data (“Dec 15”), not the date data (44910, or 2022/12/15)?
DataTables.net seems to only address this kind of question by talking javascript. I can do some coding but not javascript. Do I need to learn Javascript just for this problem? Am I right that Inline Google Spreadsheet Viewer does not need me to change its code, I just need to learn how to use what’s already coded?
My temporary (bad) solution is to have two columns, one that people can read (for example “Dec 15”) and one for sorting (for example 2022/12/15). For people on cellphones adding a 7th column makes things far too tight. I need to find how to let people sort on a column that appears like “Dec 15”.
Help, anyone? (I know the plugin creator Meitar helped for years but has set a boundary. Anyone else?)
Besides Google, I searched this plugin’s support forum and also all the WordPress support forums for “sort by day” and “sort by date”. To my surprise, no relevant answer.
One answer (relevant to a different plugin, WP Data Access) was to change WordPress’ settings for how the date is displayed. I found that under Settings > General, but that had no effect.
delete – question made by mistake – I entered the shortcode without using the shortcode [box]. Using the shortcode box fixed it.
===========
Pasting link without shortcode works. Shortcode doesn’t work for me. You?
I know the plugin author wrote extensive documentation and after years of support has stopped providing support. For anyone else:
When I enter the shortcode into the block editor, the resulting webpage shows the shortcode, not the spreadsheet.
When I just paste the link to the spreadsheet, the plugin automatically makes it appear properly. That’s great, except that I want to make changes to how it’s displayed, and those changes require either editing the shortcode or the ability to add javascript to my theme.
I tried adding the javascript (written by the plugin’s author) on my theme’s page.php file, but that didn’t work. (The javascript appeared as text.)
The shortcode I used was
[gdoc key="https://docs.google.com/spreadsheets/d/1QtUoDMdU2AI7IMPQwoUOpzOnXwjgL5LrTXBa1-5P1lo/edit#gid=287180896" datatables_paging="false"]
.
The javascript I entered was:
jQuery(window).load(function () {
jQuery('#igsv-MY_TABLE_KEY').dataTable().api().page.len(-1).draw();
});
The Google sheet is shared with “Anyone who has the link”.
Does using the shortcode still work for you, or did WordPress make a change that prevents it from working?
Anyone know how I can make this work?
Thanks
]]>I posted a similar message 13 months ago. Zippo! Bummer!
I have three tables on a page. One shows all data. The other two show partial data. All data shows on desktop. Does anyone have similar issues on mobile?
Secondly, is there anyone who is a fairly good with Inline Google Sheet Viewer? This an excellent plugin, but needs a support outlet.
]]>Wordfence is flagging this plugin as abandoned since it’s not been updated in over 2 years. It doesn’t appear the author is responding to inquiries in this forum either. Does anyone know if the plugin has, indeed, been abandoned?
Thanks!
]]>How can I write plural shortcode in one page?
when I write plural shortcode in one page, the page is not displayed on the screen properly(only blank page is displayed).
Hello,
I am using Inline Google Spreadsheet Viewer for quite some time and like it really much.
My shortcode looks like this: [gdoc key="URL" use_cache="no" class="no-datatables" query="select A,B,C,D,E,F where A = 'Example'"]
The problem is that the content of some cells are missing. For example if you imagine a fully filled 3×4 table in Google sheets, the result looks like this on the website:
X X _ _
X X X X
X _ _ _
All rows are displayed. I figured out that changing the format in Google sheets sometimes helps, e.g. when I change the format to “Date” the value in the cell appears on the WordPress site, when it actually includes a date, but not every data is a date. I tried out to include csv_headers=1
as proposed here: Link
But this doesn’t work for me. I noticed that removing query="select ...
solves the problem, but I need this feature as my table is very big.
Do you have any ideas? In the thread linked above, it was proposed to format the Google Sheets cells as Data. How can I do this?
Thank you.
I m searching a way to query an google sheets but the search paramether should be passed by the URL of previous webpage page.
is it possible?
]]>If so, would anyone please point me in the right direction to set this up? Thanks
]]>I run a number of events with an ever changing set of data that needs to be updated on a website. This data needs to be updated in a number of different places including wordpress. Currently – I update the information in a google spreadsheet and it updates the information everywhere on every platform.
My issue is that I am using shortcodes to reference specific data from a specific cell in google spreadsheet. Each placeholder on my wordpress site has its own shortcode that references a different cell so that when I update the information in google sheets it updates it across my entire website.
My current issue is the number of API requests I am getting because of this format. Currently if someone loads one of the web pages there is roughly individual API requests for information from a google spreadsheet. When I have 100 people click on that specific page, it quickly adds up to be a LOT of API requests. Google have been very kind so far and hasn’t charged me but I need to find an alternative solution that isn’t labour intensive and allows me to update the information for multiple platforms all from one database.
Google sheets is the best place for me to make these changes as I also don’t have to give back end access to my website to a number of different editors, yet each can currently correct mis-information and update bits as and when.
My question / feature request is:
Is there a way to take information from google sheets and store it in a database on the website that I can reference using short codes throughout the database. The database wouldn’t need to be updated too often, but even if it was once every 5 minutes I’d have WAY less API requests this way as essentially its one API request to update to the database. The placeholders throughout the website would then get all the information from the database via a short code.
If anyone has a better way to do this, I’m all ears! but this is what I’m currently trying to work on to better my workflow.
]]>I am using on a stats page where the main table is all game results.
Below that, I am using various tables for “top 3″ stats in various categories.
The main table and the first stats table render perfectly. However, every table following them do not view as the CSS prescribes. Of course, I want them all to look similar.
Shortcode is:
[gdoc key=”https://docs.google.com/spreadsheets/d/1DJRPjjGhu5M7B_5aoZ5Uy-3lcE8RsBmcGFKzezLBY**/edit?usp=sharing” query=”select A,C,J WHERE C != 0″? datatables_page_length=”3″ csv_headers=”1″ datatables_order=’%5B 1, “desc” %5D’ use_cache=”no”]
I can use the same exact code further down on the page and it does not adhere to page length or order, nor zebra stripe CSS. Any clues to overcome this would be appreciated.
]]>This is a great plugin that solves a problem for my client by enabling a lot of information to be displayed well in a WordPress site. For some reason, adding the code to functions.php in my Child theme that allows for HTML linking has disabled the pagination, the link that expands each item to show more columns and the export options.
]]>I notice it hasn’t been updated in a year. I really love this plugin and hate to have to go looking for a replacement. Just wondering if the developer has abandoned it?
]]>I installed and validated “Inline Google Spreadsheet Viewer”.
and, wrote following tag in my article.
[gdoc key=”https://docs.google.com/spreadsheets/d/11dVv9JUiUdEI4ugaUdt89YxXVLg6Q_KkbdrD6iVyCXw/edit#gid=689141578
“]
but, plugin doesn’t work well.
Only following message is displayed.
“400. That’s an error.
The server cannot process the request because it is malformed. It should not be retried. That’s all we know.”
Does anyone have any idea to work well?
I need your help.
Do anyone else get timeout 5000 ms? Is there any way to increase that timeout limit.
]]>I’m so impressed by the Google Charts plugin. However, I am struggling with a detail that is driving my crazy. I want to hide the x-axis values from my area chart, but cannot find any way to do this in the shortcode parameters. Any help from the society would be highly appreciated!
Best regards,
Frank
I have a google sheet with two tabs. One has a gid=0 while the other has a gid=1825906458.
The sheet is published to the web and shared with all.
Via the URL and via shortcodes I continue to only be able to view the first tab (gid=0) whether I use the gid reference in my shortcode or not.
I have had this issue before and can normally work it out after a few head-beating hours of trial and error. I am not getting there this time. Any ideas?
Thanks
]]>graph shortcode not work, give me error
]]>I dont know really what is happening. But my best guess is that the gvis script is not loaded on time and thus can not produce a graph. Anyone got any other ideas? or what I should do. Im not really a WP wizard but quite ok.
jquery.min.js?ver=3.5.1:2 jQuery.Deferred exception: Cannot read property ‘Query’ of undefined TypeError: Cannot read property ‘Query’ of undefined
at HTMLDivElement.<anonymous> (https://domain.com/wp-content/uploads/siteground-optimizer-assets/igsv-gvizcharts.min.js?ver=5.6.2:1:270)
at Function.each (https://domain.com/wp-includes/js/jquery/jquery.min.js?ver=3.5.1:2:2976)
at s.fn.init.each (https://domain.com/wp-includes/js/jquery/jquery.min.js?ver=3.5.1:2:1454)
at HTMLDocument.<anonymous> (https://domain.com/wp-content/uploads/siteground-optimizer-assets/igsv-gvizcharts.min.js?ver=5.6.2:1:197)
at e (https://domain.com/wp-includes/js/jquery/jquery.min.js?ver=3.5.1:2:30005)
at t (https://domain.com/wp-includes/js/jquery/jquery.min.js?ver=3.5.1:2:30307) undefined
S.Deferred.exceptionHook @ jquery.min.js?ver=3.5.1:2
jquery.min.js?ver=3.5.1:2 Uncaught TypeError: Cannot read property ‘Query’ of undefined
at HTMLDivElement.<anonymous> (igsv-gvizcharts.min.js?ver=5.6.2:1)
at Function.each (jquery.min.js?ver=3.5.1:2)
at s.fn.init.each (jquery.min.js?ver=3.5.1:2)
at HTMLDocument.<anonymous> (igsv-gvizcharts.min.js?ver=5.6.2:1)
at e (jquery.min.js?ver=3.5.1:2)
at t (jquery.min.js?ver=3.5.1:2)`
Recently redid my site and I am frustrated that GTMetrix pagespeed test will give me nothing better than a C or D.
I know there are other issues to fix (particularly with images needing to be resized), but several of the “render blocking resources” GTMetrix was blaming were linked to this plugin.
Even though I am only displaying spreadsheets on one page of my entire website, it looks like all the javascript and other “overhead” stuff gets loaded on every page, no matter what. I know the plugin author isn’t watching this thread and seems to be resigned to providing further updates, so I am not even going to try asking for the plugin to be updated so it only appears on pages where it is needed.
Instead, used the functions.php
guidance the plugin author provided on the plugin repository to figure out how to disable most of this overhead fluff (my tables don’t need to be sorted, paginated, have buttons, printing, etc.).
But GTMetrix still shows 2 references to URLs that include pdfmake
in them. I eliminated those functions, and they don’t even appear in the page’s source code anymore. I’m puzzled as to how GTMetrix is still “seeing” them being downloaded, when they don’t appear in the source code.
Any thoughts? This is just pestering me because I was excited to eliminate 90% of the bloat and even I can see the page loading faster… but I just want to eliminate these last 2 items. Thanks!
]]>Issue: “No data available in table” after viewing page with the following shortcode:
[gdoc key="https://docs.google.com/spreadsheets/d/12EU3NfQE4kiVylPiQRy6C2z_nmCc5ITBhzU0a8o18dM/edit?usp=sharing" query="select A,C,D,E,F WHERE B %3E'3'" header_cols="5" datatables_page_length="10" csv_headers="1" datatables_order='%5B 4, "desc" %5D']
I receive no errors, but the code does not return the desired results. In fact, I can not get ANY results. Has anyone else run into this issue? I have followed instructions and searched for any answer with no satisfaction. Thus, I turn to this support page.
TIA!
Grayson
I have a table from an SQL source with one column that have PHP serialized array data.
a:3:{s:1:"a";i:1;s:1:"b";i:2;s:1:"c";i:3;}
I tried to use render
option in columnDef
from datatables but the plugin settings does not allow to have a function in the settings object, only valid JSON.
That is not even a good approach since I would need to manually parse the data in the JS function…
Ideally a new apply_filter
on the data from the SQL query result before it is used to build the table (gdoc_html
is too late). Probably around:
https://github.com/fabacab/inline-gdocs-viewer/blob/6f9858ddab6860e056b6f373e74460666beb8260/inline-gdocs-viewer.php#L651
This way I would add_filter
, identify the right column and return unserialized data.
Do you see any other approach before I modify the plugin?
Thanks in advance,
Alex.
Thank you for your work.
Took a little bit of playing about with to get it working the way we wanted, but overall, thanks alot!
]]>The pagespeed tool of Google, i.e., https://developers.google.com/speed/pagespeed/insights/ tells me that “A plugin should only enqueue a stylesheet if it is actually used on the page.”
But our plugin loads the js and css on all pages of website even if on the one there is no gdoc
is used.
I want to know how to modify the plug-in code to optimize this situation for me.
]]>I am not able to make this work for WP v 5.6. The page that uses the shortcode says
Sorry, unable to open the file at present.
Please check the address and try again.
Any help would be highly appreciated.
Thanks