Title: User&#8217;s ads display issue
Last modified: December 29, 2019

---

# User’s ads display issue

 *  Resolved [zonepluss](https://wordpress.org/support/users/zonepluss/)
 * (@zonepluss)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/)
 * Hi!
    I have a question about user’s ads. I need to display user’s ads on their
   profile page (using Ultimate Member plugin).I have two types of user roles with
   different specific form ID, for example: Role A id=516 and Role B id=514. I created
   shortcode like this [adverts_list posts_per_page=”12″ search_bar=”disabled” author
   =”516″ display=”list”] but it’s not working. Can you help with this problem? 
   Thank You!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12285449)
 * Hi,
    in your example is the 516 user ID? If not then your shortcode will not 
   work, as the “author” param value should be the user ID only, no other values
   are being accepted there.
 * If the 516 is the user ID then i would need to know what do you mean exactly 
   by “not working”? The list does not show? or it shows all the Ads or something
   else?
 *  Thread Starter [zonepluss](https://wordpress.org/support/users/zonepluss/)
 * (@zonepluss)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12285839)
 * Yes, it shows all ads, but i need to display only user s posted ad, not all existed,
   is it possible?
    For example user create just one ad and this ad will be displayed
   on his profile page.Only his own ad must be displayed.
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12288606)
 * Ok, in this case using the “author” param in the [adverts_list] shortcode should
   limit the Ads only to the ones posted by the selected user.
 * In other words if the user ID is 516 then shortcode `[adverts_list author="516"]`
   should list Ads posted by this user only.
 * If this does not work for you then it would be best if you could paste here a
   screenshot from the page where you are using the shortcode and a link to a page
   where the user Ads should be displayed, so i could see how you have it setup.
 *  Thread Starter [zonepluss](https://wordpress.org/support/users/zonepluss/)
 * (@zonepluss)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12289968)
 * Thanks, [adverts_list author=”516″] this shortcode work perfectly!
    Greg, can
   you tell me please what could be wrong with these two shortcodes?
 * 1)[adverts_list name=”Business” columns=”4″ posts_per_page=”12″ search_bar=”disabled”
   allow_sorting=”0″ author=”id_ um_custom_role_1″]
 * 2)[adverts_list name=”Private” columns=”4″ posts_per_page=”12″ search_bar=”disabled”
   allow_sorting=”0″ author=”id_ um_custom_role_3″]
 * They are placed on the same page (Home page).
    The first shortcode work fine,
   its display that what i want, but the second one display this text “No ads found
   matching your search criteria.” Thank You!
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12295931)
 * Hmm i suppose it is a problem with the “author” param as none of the other params
   you have modifies the list of Ads.
 * You can try to remove the author params from the second shortcode and see if 
   it will show ads (it should show all of the active ads), if it does the value
   you have set there most likely points to an ID of a user who does not have any
   ads or to a non-existing user.
 *  Thread Starter [zonepluss](https://wordpress.org/support/users/zonepluss/)
 * (@zonepluss)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12297388)
 * Ok, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘User’s ads display issue’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [zonepluss](https://wordpress.org/support/users/zonepluss/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/users-ads-display-issue/#post-12297388)
 * Status: resolved