[Resolved] User WPSP to list users post in their profile

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support User WPSP to list users post in their profile

Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15555
    Maria Rowena
    Participant

    Hello Tom,

    Is there a way to use WPSP to list users post in their profile? I’m just trying my luck if you could help me here.

    I have read this thread–>https://wpshowposts.com/support/topic/shortcode/
    That is somehow near to what I want.

    I have this function from ultimate member –> $profile_id = um_profile_id();
    I want to use that instead of manually writing the user id in the shortcode. Hope you can give me some advice on how can I achieve this using WPSP.

    I am not coder. I have little knowledge only. But I can follow if you can provide little help. Thank you so much in advance.

    More power to your team! 🙂

    #15564
    Maria Rowena
    Participant

    Hi Tom!

    Got this work so far–>echo do_shortcode(‘[wp_show_posts id=”22559″ settings=”author=”.um_profile_id().””]’);

    I am little bit near to what I want.

    When I use that shortcode, it displays the current user’s post. The only problem is when I view another profile I see my own post.

    Hope there is chance to achieve this using WPSP.

    Thanks.

    #15580
    Tom
    Keymaster

    Hi there,

    So when you view another profile, you see only your own posts only or your own posts and the user’s posts?

    #15588
    Maria Rowena
    Participant

    Hello,

    Yes, when I view their profile I see my own post.

    What I want is whenever I view someone’s profile, I can see the list of their published post. You know, almost the same with bbpress profile, you have your created topics and you can see the topic created by another person when you visit their profile? I am hoping that’s possible with WPSP plugin.

    Thank you so much Tom! 🙂

    • This reply was modified 2 weeks, 5 days ago by Maria Rowena.
    #15601
    Tom
    Keymaster

    That should be what your code is doing, but I suppose it depends on the output of um_profile_id().

    If you do this, do you only see the ID of the current user’s profile?

    <?php var_dump(um_profile_id()); ?>

    #15618
    Maria Rowena
    Participant

    I tried this <?php var_dump(um_profile_id()); ?>

    and yes, I see the ID of current user. I’m so sad.

    I think, this is not under the scope of your support anymore but perhaps you know a way on how to get user/author i’d when viewing their profile?

    Thank you so much. 🙂

    #15620
    Maria Rowena
    Participant
    #15643
    Tom
    Keymaster

    I think in this case it would depend on Ultimate Member. Have you asked them if they have a function to get the current profile ID?

    #15917
    Maria Rowena
    Participant

    Thank you so much Tom, I found a way to do it! I just made a little mistake in the code that I posted above. You are the best! 🙂 I am really happy using this plugin. 🙂

    #15935
    Tom
    Keymaster

    Glad you got it working! 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.