WordPress.org

Ready to get started?Download WordPress

Forums

PHP Code Widget
[resolved] PHP dont works (4 posts)

  1. linchen
    Member
    Posted 3 years ago #

    <?php echo"hallo";?> show empty widget

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    <?php echo"hallo";?> is not valid php code.

    Have you tried <?php echo "hallo";?> instead?

  3. kpmanuel
    Member
    Posted 3 years ago #

    It doesn't work for me either. The text doesn't show up. I have WordPress 3.1.

    I've tried
    <?php echo 'testing'; ?>
    <?php echo "testing"; ?>

  4. kpmanuel
    Member
    Posted 3 years ago #

    Nevermind, I figured out what I was doing wrong. I was still using the old "Text Widget" box instead of the "PHP Code Widget" box. Oops!

    Thanks for the widget!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic