WordPress.org

Ready to get started?Download WordPress

Forums

Adding an if-else in a wordpress page (3 posts)

  1. Shripad
    Member
    Posted 1 year ago #

    Hi,

    I want to display slightly different pages for logged in and non-logged-in users. I am thinking of using php but I hear it compromises security of the webpage. Can you please let me know if using php in a wordpress page is possible and how to achieve this. Also, please tell me if there is any better way to achieve this.

    Thanks,
    Shripad

  2. Shripad
    Member
    Posted 1 year ago #

    Hi, Thanks for the info, I was able to create and use new templates.
    However, I have one follow up question: How can I hide only a part of a page from visitors?

    Thanks,
    Shripad

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags