Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #480610

    Is there a way to generate the tab element dynamically?

    I am trying to put some post list into the tab element. And each tab page representing a date of posts.

    The date will show as the tab name. The tab content will be the post list of that date.

    However, I want the date to be dynamic. I want to show 5 tab pages which the tab name are recent 5 days.

    e.g.
    Tab Name 1: Jul 10 (or today)
    Tab Name 2: Jul 09 (or yesterday)
    Tab Name 3: Jul 08
    Tab Name 4: Jul 07
    Tab Name 5: Jul 06

    tomorrow, the tab will be changed to:
    Tab Name 1: Jul 11
    Tab Name 2: Jul 10
    Tab Name 3: Jul 09
    Tab Name 4: Jul 08
    Tab Name 5: Jul 07

    #480681

    Hi boscotwcheung!

    You can enable debugging mode to see shortcodes you have created in pages using Advanced Layout Builder – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
    You can switch to Default Editor and click on Magic Wand to see full list of shortcodes http://i.imgur.com/n4KXkdm.jpg
    then you can create any of them and copy/paste shortcode into any other content element or into text widget.

    Regards,
    Yigit

    #481090

    It works! Thanks!

    • This reply was modified 9 years, 3 months ago by boscotwcheung.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Dynamic Tab Element’ is closed to new replies.