Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @trey96

    Participant

    Yes, it definitely works. The only issue I am having is with adjusting the width and height. When I change it from 50 to 80 within the PHP code, the image dimensions still appear to be 50px by 50px.

    Also, I would still like to pull the user’s bio using a separate shortcode using the username. Thanks so much.

    @trey96

    Participant

    Hi @thinlizzie,

    Yes, that is correct. It won’t be from the logged-in user. Currently, I am pulling the username from a page url. The username is located at the very end of that url. Here is an example of what it would look like for @johnsmith:

    http://www.samplewebsite.com/bpmembers/johnsmith

    *The url structure above does not change based on login status. The url would be exactly the same for both logged-in users and visitors (not logged in) viewing that page.

    I want to pull information from any user’s account that is stored in my site’s database (profile image, bio, etc.) and use separate shortcodes to display each piece of information on any page I create in my WordPress admin. Also, the information will not be different, but display the same profile information regardless of login status. So a visitor or logged in user would see the same profile information.

    I hope I can achieve this using PHP codes and custom shortcodes that look something like this:

    Examples:

    [show avatar username= “johnsmith”]

    [show description username= “johnsmith”]

    This way, I can manually swap out the username within the quotations to display information for any user’s profile.

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar