Hey everyone!

With the holiday season upon us, we want to share our upcoming working hours:

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

Okay
  Public Ticket #3424978
PHP - Get value from shortcode
Closed

Comments

  • Kim Allan Kristensen started the conversation

    Hi wpDataTables

    I have just bought wpDataTables and I am very happy with the program.

    When I became aware that you could retrieve data via shortcode, a new world opened up.

    I have created this page which shows the times and dates of our airplanes. all 12 values are retrieved via shortcode.
    https://www.fynsulklub.dk/booking-af-klubfly/preview_id=10623&preview_nonce=9743e8804c&preview=true

    My question is probably not direct to wpDataTables, but more how to compare two numbers with each other in the PHP code.

    I retrieves the value via wpDataTables shortcode in PHP code, but i can't find out and compare the value with another number.

    if ([shortcode == X) {do}

    Yours sincerely
    Kim Allan Kristesnen

    Attached files:  Shortcode value in PHP.png

  •  1,847
    Miloš replied

    Hi Kim Allan Kristesnen,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    Thank you for your purchase,

     I am very glad to see you are happy with how it is performing so far,

    we hope that it will serve you well for your use case.smile.png

    -

    In regards to this question,

    i am truly sorry, but we have not tried anything like this yet,

    and this is not something that can be done only with our built-in features/options, as you know,

    it requires a custom solution which is not provided by our Support.

    If you wish to see a user-friendly solution for this in the future,

    you can suggest it to our developers - they will do their best to make a solution in 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 | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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