BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 1
    Brat on #9403

    Hi,

    Thanks for the reply.
    I will try for it.

    Also I want to show login form in selected pages, so can I try the below conditions:

    <?php if ( !is_user_logged_in() && is_front_page() && is_page( ‘2’ ) ) : ?>

    //Code here……
    <?php endif; ?>

    I just tried these with another form to make sure that these conditions are working. In these only condition “is_page( ‘2’ )” is not working. Is it right to show on page Id with 2? And also what is difference between is_front_page() & is_home()?