• Resolved jaydweight

    (@jaydweight)


    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.

    [ Please do not bump. ]

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter jaydweight

    (@jaydweight)

    Okay, I was able to work through it and I figured it out. I simply added datatables_order= 1 and now the html images I’ve added are now showing at the top of the table. ??

    Oh, and the table elements are there and showing perfectly.

Viewing 1 replies (of 1 total)
  • The topic ‘Using php echo do_shortcode and URL-escaped Sort Order code’ is closed to new replies.