• Resolved wp help

    (@platinumrealty)


    Hello,

    Please simply tell us where and what code to enter to get ONLY results that are attached to the logged-in user to display on the frontend.

    We have created a data table using App Builder, have placed the shortcode on the frontend, yet it is displaying all entries for every user.

    Simply advise of WHERE within the app builder table and WHAT CODE we need to use to accomplish this.

    Thank you

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Kim L

    (@kimmyx)

    Hi @platinumrealty,

    You may add the following to your Default Where field in the table builder:

    UserID = @wpda_wp_user_id

    Change UserID to any column name that directly reflects the user’s ID generated by WordPress.

    For more information, please see:

    Hope this helps!

    • This reply was modified 1 year, 1 month ago by Kim L. Reason: added links
    Thread Starter wp help

    (@platinumrealty)

    Thank you

    We get this error – unknown column ‘UserID’ in where clause.

    Without having to amend the table to add UserID column, how do we connect to other tables that do have a UserID column?

    Please advise.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Currently LoggedIn User code’ is closed to new replies.