• Resolved doncc

    (@doncc)


    Hi,

    I was looking to manually add the shortcode to my wordpress template (to better control ordering of Starbox + Ad + Related Items.

    I was reading this post (http://wordpress.org/support/topic/shortcode-not-checking-if-the-author-wants-to-use-it?replies=4), and grabbed this PHP snippet:

    <?php if (class_exists('ABH_Classes_ObjController')) {
    echo ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    } ?>

    I am running into the same issue of the styling dropping off of thestarbox when it gets included at the template level (if I change the “Visible in Posts” switch. Did I misunderstand, and is there other code that I should use?

    Also – in a similar issue – the styling of the Starbox does not show if I include the shortcode in the author archive views. Any advice here?

    Thanks,

    Don

    https://wordpress.org/plugins/starbox/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode Included by PHP Not Working?’ is closed to new replies.