Easy way to create a Table Of Contents accordion?

Hi all,

I’m looking for a way for a non-technical client to be able to create a Table of Contents accordion, including in-page links, when they’re creating posts (i.e. I’d rather not have them contact us each time they need to build one). They are currently using a different page builder, and I’m looking to migrate them to Pro.

An example of what I’m looking for can be found in the attached Secure Note (please do not publish the URL or feature any screenshots in your reply).

Many thanks in advance.

Hello @KEXINO,

Thanks for writing in!

Please create a global block that displays your list item menu. You can then use the global block shortcode inside the accordion item element.

Hope this makes sense.

Good thinking with using a global block. I didn’t think of that.

However, in this case the user would need to edit the global block content for each blog post, right?

Would there be a way of populating the global block element content in some other way? Maybe with the new ACF Pro functionality?

Hello @KEXINO,

In case if you are using a separate global block for the content of each post that case user needs to edit the global block content separately for each content.

Yes, you can use the ACF fields to fetch the data into the Global Blocks for Table of Content of each post. I would suggest you go through how to use the ACF fields to store and fetch the data in this article: https://theme.co/docs/acf-pro-and-loopers

Thanks

OK thanks.
The ACF stuff looks pretty complicated, but I’ll give it a try.

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.