Using php echo do_shortcode and URL-escaped Sort Order code
-
I love this plugin, and I’m learning a ton. Thanks Meitar for all your help.
I’m adding my google sheet via php (I’m not fluent- but a beginner for sure) like this:
<?php echo do_shortcode("[gdoc key=ABCDEF]"); ?>
I noticed that when I added html in one column (and yes I did add the ability to add html to the table by adding the function in the functions.php file) it won’t sort appropriately.
So upon further research, and the well written instructions by Meitar, I’ve found that I can fix that by editing the above code to this code:
<?php echo do_shortcode("[gdoc key=ABCDEF datatables_order='%5B%5B 2, desc %5D%5D']"); ?>
But when I do that, some of the table elements disappear, like the ability to search, and have pagination.
How can I fix this? And, sorry for not knowing, but I know someone might be able to guide me in the right direction. Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘Using php echo do_shortcode and URL-escaped Sort Order code’ is closed to new replies.