• Resolved ehsanmn

    (@ehsanmn)


    I want to have a code that displays a text if there is a table of contents on the page like his :

    <?php if('toc');?>show this text if this page (or post) has a toc<?php endif; ?>

    What condition should I define?

Viewing 1 replies (of 1 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for reaching out to us. Could you please specify exactly where you want to display this message, in the content or in the header?

Viewing 1 replies (of 1 total)

The topic ‘php code to show a text if has toc’ is closed to new replies.