Hi. Thanx for the great job you do here.
I use in “after content hook” a shortcode for related posts. I would like this shortcode to display only in single posts. So i use:
`<?php if ( is_single() ) : ?> [*shortcode*] <?php endif; ?>
but the code is displayed in post categories archive.
I also tried to hide hook in a specific categoy-id but it was also displayed.
Any help?
I had checked “Execute PHP” but didn’t work.
Also it was displayed: DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks".
due to the security plugin i use.
So, i added define( 'GENERATE_HOOKS_DISALLOW_PHP', true ); in wp-config below define( 'DISALLOW_FILE_EDIT', true ); and after that checkbox was hidden.