• I’m working on a site where users, who don’t know HTML, enter Page content via the standard WP Visual editor, and the page template displays the content. There are 4 subheaders and respective content below each subheader.

    However, they’d now like that content to be organized into 4 tabs instead of subheaders to be more visually appealing. A few of the tabs will have display conditions, such as if there is a featured image or registration form activated.

    My conflict is this: To go plugin or home-grown tabs. I’d like the non-technical users to not have to deal with too much HTML and shortcode, but (and I am a relative WP newb) I’m not sure if there’s a way around it. I’ve experimented with the WP UI plugin which is very finicky about spacing. It looks great, but making slight edits seems to almost always throw the top margin in the content down. Tough to make changes without throwing off the top margin of the content – not great for the users.

    I’ve built jquery tabs in the past, but I wouldn’t know how to parse content into tabs if the user enters all the content in the editor. There would have to be shortcode involved on some level, especially if the back-end had to check for an instance of a featured image and display the correct style. Would it make sense to create a custom field for each tab’s content?

    Any ideas and thoughts welcome.

  • The topic ‘Advice on displaying content in tabs’ is closed to new replies.