• Hi!

    I have a static page with 2 TablePress tables, [table id=1 /] and [table id=2 /], I want change this tables once every week, on every Saturday.

    For example:

    Saturday #1 - [table id=1 /]
    Saturday #2 - [table id=2 /]

    And repeat it every weak.

    How to do it? Thank you! Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    thanks for your post, and sorry for the trouble.

    I don’t have a directly usable solution to this, unfortunately. The best way probably is to use a custom PHP page template in your theme, where you add a check for whether the current week number is odd or even. Depending on that, you can set 1 or 2 as the parameter value e.g. in the template tag function that TablePress offers besides the Shortcodes (see http://tablepress.org/faq/documentation-template-tag-functions/ )

    Regards,
    Tobias

    Thread Starter Allen E

    (@school82)

    Thank you! Can you help me with troubleshooting this issue? I’m not good in PHP. My theme is Responsive Theme.

    Hi,

    sorry, I don’t have that code available at the moment and don’t have time at the moment to research this, as I’m pretty busy.
    I suggest that you try this yourself first, by trying to get a page template to work and look at how PHP’s date functions work.

    Regards,
    Tobias

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

The topic ‘Change content on page every week’ is closed to new replies.