• Resolved Anonymous User 5580574

    (@anonymized-5580574)


    I’m glad you have the plugin “Automatic Periodic Table Import”.

    1. Is there any way to change the time like to once a day at 6 o’clock? The way so far is too relative, in my case.

    2. If not, maybe a ping to a specific file (by own cronjob) to do the import job?

    3. Is there also a way to extract the date of the “Last Auto Import”? I would post it to the theme, where the automatically updated table appears.

    Cheers! And thanks for all you hard work. Awesome!
    Sebastian

    https://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Sebastian,

    thanks for your post, and sorry for the trouble.

    1. No, sorry, that’s not possible, due to how the WordPress Cron function works. One can not really set a definite time at which the import is run, as the time depends on users visiting the site after the given time.

    2. Now, as calling the WP Cron system with a real server cron job is possible (you can find tutorials via Google), it should be possible to let the import cron run at about 6 o’clock. For that, you would have to save the Auto Import configuration at 6 o’clock (because the WP cron job gets registered with that time then), and use a system cron job to trigger the cron execution.

    3. Sure, that’s possible by simply using the “Last modified” date of a table, which is available via a Shortcode as well:

    [table-info id=2 field="last_modified" format="raw" /]

    You can also use human and mysql for the format parameter to get different date/time formats.

    Regards,
    Tobias

    Thread Starter Anonymous User 5580574

    (@anonymized-5580574)

    Hi Tobias,

    thx for the fast reply, but especially for the information! That helped a lot.

    I think this topic is resolved.

    Beste regards and furthermore good luck with the plugin!
    Sebastian

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Specify time for "Automatic Periodic Table Import"-Plugin’ is closed to new replies.