php code to show a text if has toc
-
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)
Viewing 1 replies (of 1 total)
The topic ‘php code to show a text if has toc’ is closed to new replies.