Replies: 0
Hi Aldo or other contributors,
I have to say,
“This is a great and powerful Widget!!”
I have special needs to display certain posts for certain user. I already set a meta for those posts with a certain username. So my goal is to display these posts when the user logs in, not other posts.
I read all the docs you provided but I don’t know much about coding and really need your help to understand or get the codes for it. I have two questions here:
1. I don’t know how to use shortcodes…. bear with me, please. so I don’t know where to put the shortcodes listed in your docs to your widget.
2. I read the link of “wp-query” you provided and know there is a query to get user ID:
Line 2430: $user_id = get_current_user_id();
So my request is:
Could you help me with a shortcode (please tell me where to put it) that will query the user id for logged in user (this widget is for logged-in users) and display the posts with the meta info which I set with the logged-in user ID.
Many many many thanks for helping me!
Stone