Forums

Extending WordPress Users outside of the blog (2 posts)

  1. ocon
    Member
    Posted 2 years ago #

    I have wp installed in a directory on my site:

    example.com/blog/

    And in order to comment, users have to subscribe by creating an account and logging into the blog first.

    But my site is more than just a blog, it has other things to:

    example.com/
    example.com/folders/
    example.com/friends/
    example.com/photos/
    ...

    What I would like to start doing is on some pages in my site to show different content based on if the person is logged in or not. Again, this isn't a wordpress "page", but just a regular php page.

    As a simplified example, something like:

    is_logged_in_user(){echo "Hello".$wp_username;}
    else(){echo "Register an account with us today.";}

    Is this possible, any ideas where to start? Is there some kind of api interface that would help me out?

  2. design_dolphin
    Member
    Posted 2 years ago #

    Have you checked the Codex and the Plugins page?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.