May 13, 2020 at 8:27 pm #15555
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! 🙂May 13, 2020 at 11:12 pm #15564
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.May 14, 2020 at 8:20 pm #15580
So when you view another profile, you see only your own posts only or your own posts and the user’s posts?May 15, 2020 at 3:18 am #15588
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! 🙂May 15, 2020 at 5:07 pm #15601
That should be what your code is doing, but I suppose it depends on the output of
If you do this, do you only see the ID of the current user’s profile?
<?php var_dump(um_profile_id()); ?>May 16, 2020 at 6:27 am #15618
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. 🙂May 16, 2020 at 7:28 am #15620
I’m sorry, is there a way we can implement this in WPSP–>https://wordpress.stackexchange.com/questions/71368/how-to-pull-user-author-profile-data-in-a-pluginMay 16, 2020 at 3:25 pm #15643
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?May 25, 2020 at 6:28 am #15917
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. 🙂May 25, 2020 at 5:14 pm #15935
Glad you got it working! 🙂
- You must be logged in to reply to this topic.