• Resolved ante1974

    (@ante1974)


    Does this plugin allow you to drop user profiles onto a page with a user specific shortcode, something like [userid=123] or [user=firstname-lastname]? I want to be able to drop user profiles on specific pages so they are viewable in a custom site structure.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Yes, you can do that with the “User Meta” widget/shortcode/block.
    Read more at https://docs.userswp.io/article/498-uwp-user-meta

    Thanks

    Thread Starter ante1974

    (@ante1974)

    @goldroo would I have to specify all the meta I wanted to pull through, or is there a template profile page containing profile background image, profile picture, name, bio, website etc?

    Plugin Contributor Paolo

    (@paoltaia)

    Do you need only some specific profiles to be viewable in a custom site structure, or profiles?

    The idea with UsersWP is that you modify the UWP Profile Page and all profile pages will look like that template. You can also modify the PHP template directly if you prefer.

    Let us know exactly what you are trying to do and we will try to help.

    Thanks

    Thread Starter ante1974

    (@ante1974)

    Hi @paoltaia

    I would need to see all profiles, my structure has hard coded links to pages like:

    mysite/authors/a/ – which lists all authors that have names beginning with a

    I already have a plugin that lists all authors whose first names begin with “A”, but if this plugin can do this, please advise.

    Then from that page when you click on an author tile/photo, that should take you to another page with the authors profile, i.e:

    mysite/authors/a/aubrey-wilson

    I would want to drop a shortcode to that authors specific profile on the “aubrey-wilson” page.

    All the profiles would have the same template.

    Is this possible – If I could have code examples or links to the relevant places in the docs that would be great.

    Thanks

    Hi,

    This is not possible without customization.

    Regards,
    Patrik

    Thread Starter ante1974

    (@ante1974)

    Hi @paoltaia

    Just to confirm, so I couldn’t drop a shortcode to display a specific user profile on a page like:

    /aubrey-wilson
    /barbara-jones

    Etc?

    Thanks.

    Hi,

    Not easily possible. You can use our shortcodes to display data about users but not the whole profile as you want. We pass and use a username from URL to get the data about the user and display his profile.

    Regards,
    Patrik

    Maybe have a look at the default pages that are created with UsersWP, it may be close enough to what you need?
    https://demos.ayecode.io/starter/users/
    https://demos.ayecode.io/starter/profile/guust/

    Thanks

    Thread Starter ante1974

    (@ante1974)

    @wpdev10 would it be possible to extend the plugin to reference a template and call values specific to one user, to suit my use case as future development of the plugin? I understand this isn’t possible now.

    @goldroo those URL’s don’t match the URL structure of the site.

    Hi,

    You can extend the things using hooks and filters and template overrides but it will need to be done by the developer as it requires custom coding.

    Regards,
    Patrik

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Profile Shortcode’ is closed to new replies.