Shortcode not checking if the author wants to use it
-
Hi, I use a code insert plugin to put the [starbox] shortcode exactly where i want it on the page. I really don’t want my authors to put it in manually in their posts, since that require edits of hundreds of posts.
Some authors don’t want to show the Starbox.
If the shortcode routine checks to see if the author has set the Starbox ON (‘abh_use’, I think ) before showing it, that would be perfect.As it is now, every user gets the Starbox when the shortcode is used, whether they want it or not.
I tried hacking it, like this:
<?php if (ABH_CLasses_Tools::getValue('abh_use')==1) {?> [starbox] <?php } ?>
but that didn’t work.
Help to get it working would be much appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Shortcode not checking if the author wants to use it’ is closed to new replies.