WordPress.org

Forums

If logged in on different url (1 post)

  1. sw4mp
    Member
    Posted 9 months ago #

    I have a hosting account with a primary domain and an addon domain.

    A wordpress installation is within the root folders, and within a subfolder that the addon domain is pointing to is a php file importing content from the wordpress installation.

    I'm using "require('../../w/wp-blog-header.php');" and everything is importing just fine except user status. Posts and pages come through, but when I try "if ( is_user_logged_in() )" it's not working at all.

    Why? And is there a way to check if a user is logged in?

Reply

You must log in to post.

About this Topic