How to render an accordion from Wordpress?

Hi All,

I would like to know if anyone had an experience to have to render an accordion from Wordpress in Frontity React.

Any idea how to achieve it would be appreciated.

Kind regards,

Fernando Fas

Hi Fernando,

I don’t think there’s a way to render an accordion exactly from WordPress since probably this would require some js running, so when frontity takes the data from REST API probably wouldn’t do that.

Instead, you can create some custom fields in WordPress, and then use an npm package like or another ( there’s a few with the accordion feature, take a look in NPM). Then you can receive the data with frontity and render it into your react component.

Hope this helps,


Hi alex.fernando801,

Thank you for your reply.
I managed to create my own accordion in react, but not sure how to make display in a specific page.
I also posted a new topic about how to load a single react page instead of fetching from wordpress.
If that is possible would be great.

Thank you for your reply.

Kind regards,