Hey everyone!
With the holiday season upon us, we want to share our upcoming working hours:
- New Year: Our team will be off on January 1st and 2nd. We’ll be back on Friday, January 3rd, to respond to any messages received during this time.
- Weekend: As usual, we don’t work on weekends, so January 4th and 5th will also be non-working days.
- Orthodox Christmas: Our office will be closed on Monday and Tuesday, January 6th and 7th for the holiday.
After that, we’ll return to our regular schedule and assist you as quickly as possible.
In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.
Thanks a bunch for your understanding and support!
Warm regards and happy holidays!
TMS
Hi,
I'm having a few complications using the single cell shortcode. Two issues:
1. The single cell shortcode doesn't seem to work when I place the code BEFORE the wpDataTable on the page. It returns null instead. Note that I am using placeholders to filter the underlying wpDataTable. The single cell shortcodes do properly populate when I put them after the wpDataTable code.
2. The single cell shortcode doesn't seem to work when I want to use a null or different placeholder value. Do single cell shortcodes support placeholders (var1, var2, etc.)?
Please let me know how to fix these issues. Thank you!
Hi, E.
1. I did not fully understand what you are trying exactly with the "BEFORE", but
I am pretty sure that it is not currently possible to do something like that,
because for our Single-Cell Shortcode, with our current built-in options,
needs to have a fixed row value for it to work.
But I will elaborate a bit more about this, because there was another user who wanted to somehow filter/ make the single cell shortcode value dynamic,
here is what our developers said on that subject :
It is not possible for the single cell shortcode to be connected with the filtering of the table,
or in other words, the single cell shortcode was not intended to be working after the table loads,
if any filters are applied to the table.
But, you could filter the shortcode with a hook before the page loads,
for the row_id
wpdatatables_cell_filter_row_id
For example :
We don't have this hook yet on our Documentation,
but you can take a look at the function that generates Single Cell shortcode and to see which filters are available in this PHP file :
wp-content/plugins/wpdatatables/controllers/wdt_functions.php
at line 654
-
I hope that might help.
Let me know how it goes. Thank you
2. The single cell shortcode doesn't seem to work when I want to use a null or different placeholder value. Do single cell shortcodes support placeholders (var1, var2, etc.)?
- Sorry to disappoint you, but it is not currently possible to use dynamic placeholders with single cell shortcode feature.
But you can add a development suggestion for the future.
Please feel free to search on our suggestions page,
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
-
If you have coding skills and wish to try to make a custom solution now,
you can check out our available hooks for Developers on this documentation and see if you can find any hook that might help.
Please be advised that custom solutions with hooks are not included in our support.
You can also research resources such as Stack Overflow to see if any other user perhaps found a workaround.
( We do like to give examples for certain solutions, but for this use-case, we, unfortunately, don't have anything yet)
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables