I just created a custom shortcode in Classicpress where I would be able to implement a tabber functionality, I implemented the tabber functionality because it would be difficult to manage HTML tags.
This is how I structured the shortcode to display my preferred output in the editor:
[tabsdiv]
[tabsnavul]
[tabsnavli1]
[/tabsnavli1]
[tabsnavli2]
[/tabsnavli2]
[tabsnavli3]
[/tabsnavli3]
[/tabsnavul]
[tabsul]
[tabsli]*ClassicPress Community is the best...*[/tabsli]
[tabsli2 id = "tab-cons"]...[/tabsli2]
[tabsli2 id = "tab-opi"]...[/tabsli2]
[/tabsul]
[/tabsdiv]
And this is my output on the frontend:
My question: Is there some ways I can make the shortcode dynamic, for example; displaying a form where I would be able to input all this without adding lots of shortcodes as displayed above (not overkill thou).
What I would love to implement in my theme is a form in the classicpress editor where I would be able to input the description/text of the three tabs, and it would then automatically convert it into the shortcodes.
Hopefully, someone could point me in the right directions, so I will embark on my journey! Thanks