Jump to content

Getting Client CurrentUser in Feeds


Recommended Posts

Sorry to bother, but I must be missing something fundamental here.

I'm a noob at feeds (clearly).

productsinfo.php is working fine, producing results perfectly in the Wordpress header.

I'm doing a "userstatus.php", but I can't seem to get ahold of the CurrentUser

Tried:

(See screenshot 1, cloudflare on this board isn't letting me paste php code ...)

Also tried the old fashioned way:

(See screenshot 2 please)

Neither work -- both return "Logged Out".

For voodoo, I included script in the wordpress head:

(screenshot 3)

What gives? Why can't I get the SESSION or the CurrentUser using a feed in a wordpress page?

Perversely, even when the clientarea is showing (see attached), that feed will throw up "Logged out" :)))

Clearly I'm missing something quite obvious!

Thanks,

David

Screenshot_1.jpg

Screenshot_2.jpg

Screenshot_3.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated