• Whenever I install a plug-in that allows use of shorttags, the plug-in does not appear. This actually happens whether the plug-in uses the square bracket shorttag convention ( [content-form 1 “Content form 1”] ) or angled-brace-comment convention (<!–comment form–>).

    To rule out my deployment at a higher level, I switched themes, and sure enough the plug-in appears as expected. Therefore I can safely assume that the problem is not with the plug-in, or with WordPress in general, but rather with that particular theme, which is itself a custom theme (no author to ping for support… it’s developed in-house so we are our own support!)

    Somehow the tag isn’t being parsed… my theme is breaking the ability for the engine to replace the shorttag with the actual plug-in. But I don’t know how to start finding possible culprits. I tried disabling different plug-ins, but that wasn’t it. Even with all the other plug-ins enabled, but a DIFFERENT theme being used, they all appear properly. It is only in this particular theme.

    I know that’s somewhat vague, but i was hoping beyond hope that someone had a silver bullet for me. “Look in functions.php and make sure there’s no function called mess_my_stuff_up()” for example. ??

    Thanks for your time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter monkeyhouse

    (@monkeyhouse)

    Actually, I wonder if it’s right in these few simple lines:

    <div id=”subcontent2″>
    <?php
    global $post;
    echo nl2br($post->post_content);
    ?>
    </div>

    Without using the php n12br function, there’s still no love (“echo $post->post_content” just generates a block but still no plug-in). But is the $post->post_content correct?

    Thread Starter monkeyhouse

    (@monkeyhouse)

    *sigh* Lost in the huge and enormous WP.org forum…

    A different tack, then–

    Which pages and functions would go into the building of a page using the template “about”?

    I see:

    header.php
    about.php
    footer.php
    functions.php (in theme directory)

    Since the plug-ins work in other themes, it won’t be related to any code outside the theme directory that I’m aware of. But that might be a false conclusion?

    Greg

    Thread Starter monkeyhouse

    (@monkeyhouse)

    This forum is brutal… but just in case someone else ever reads this, might as well post the solution.

    As suspected, the short PHP function 2 replies above was the culprit.

    By replacing it with:

    <?php the_content(); ?>

    The whole issue was resolved.

    Seems to me something that anybody with more than my beginner’s level of knowledge would have known. Surprising and disappointing that this forum couldn’t come up with the answer….

    Greg

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Possible culprits for broken shorttags?’ is closed to new replies.