WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Use WP Data in PHP script (4 posts)

  1. Alphawolf
    Member
    Posted 7 years ago #

    Hey guys,

    how is it possible to use WP data (such as logged in username) in seperate PHP scripts? I set a link to a popup in an existing WP page, but I cant use a WP page within that popup (or can I?), cos I'm delivering some variables to the popup page.
    I need some informations from the currently logged in user, any hints? What do I have to include to use getcurrentuserinfo() and such?

    greetings

  2. drmike
    Member
    Posted 7 years ago #

    If it's just the username, why not pass it as part of the URL and capture it on the other program with a GET?

  3. Alphawolf
    Member
    Posted 7 years ago #

    Hey drmike,

    that would be a possibility, but I need(ed) kinda all the information. I used an own templated file within WP and opened it via popup, and it worked.. was a bit more complicated and took longer, but it works.

    greetings

  4. MooseHead
    Member
    Posted 7 years ago #

    Hiey Alphawolf,
    could you pleas show me how u did it? I have a similar problem since I'm trying to send a variable to a .swf file (instead of a popup page).
    More specifically I'm trying to assign the string called by the_title(); within the loop to a variable (&myTitle) and make it displayable inside a swf file which contains a dynamic textfield. Here is my post

Topic Closed

This topic has been closed to new replies.

About this Topic