Add Rank Math TOC as html

#1081281
  • how do i add rank math TOC as html? or via wordpress API? I can add from content editor. but i want to copy paste html generated blog (via chatgpt for example) including rank math TOC. I am unable to do it

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I apologize for the issue you are facing with adding the Rank Math Table of Contents (TOC) as HTML. Currently, the Rank Math TOC block is designed to be used within the Block Editor, and it automatically generates the TOC based on the headings in your content. Unfortunately, there isn’t a direct way to add the TOC as HTML or via the WordPress API for manual insertion.

    If you want to include a TOC in content generated outside of the Block Editor (like from ChatGPT), you would typically need to ensure that the content includes appropriate heading tags (like ,, etc.) so that Rank Math can recognize them and generate the TOC when you use the block.

    For more detailed guidance on using the TOC block, you can refer to our knowledge base article here: How to Add Rank Math’s Table of Contents Block.

    If you have further questions or need assistance with specific settings, please reply to this ticket, and a human agent from our support team will assist you further. Thank you for raising this concern!

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    I have tried adding shortcode. That also do not work.

    [rank_math_toc]

    can you please elaborate on this? I am not sure if i follow

    If you want to include a TOC in content generated outside of the Block Editor (like from ChatGPT), you would typically need to ensure that the content includes appropriate heading tags (like ,, etc.) so that Rank Math can recognize them and generate the TOC when you use the block.

    If there is no way. Can rank math detect TOC generated as html? Do i have to use rank math TOC?

    Hello,

    Thank you for contacting Rank Math support.

    The Table of Contents block is only for Gutenberg or the block editor. Currently, it will not work on any other page builders.

    However, there are a couple of Table of Contents plugins that are compatible with Rank Math, which can be suitable for your use case. They are listed below in no particular order:

    1. Joli Table Of Contents: https://rankmath.com/compatibility/joli-table-of-contents/

    2. TOP Table Of Contents: https://rankmath.com/compatibility/top-table-of-contents/

    3. LuckyWP Table of Contents: https://rankmath.com/compatibility/luckywp-table-of-contents/

    4. TOC Pack – Table of contents for Elementor: https://rankmath.com/compatibility/toc-pack-table-of-contents-for-elementor/

    5. Divi Table Of Contents Maker: https://rankmath.com/compatibility/divi-table-of-contents-maker/

    6. SimpleTOC: https://rankmath.com/compatibility/simpletoc/

    We hope this is helpful, and please do not hesitate to let us know if you need our help with anything else.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.