• I am trying to put the following in a Text widget…

    <?php
    if ( is_front_page() == 1 )
    {
    echo “Text for frontpage.”;
    }
    else
    {
    echo “Block of text for all other pages.”;
    }
    ?>

    … the thing is it works perfectly, when I’m logged in but displays nothing at all to any logged out visitors!?

    Any help please?

    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple PHP code in Text Widget’ is closed to new replies.