Title: SHORTCODE DISPLAY SPECIFIC CATEGORY
Last modified: August 30, 2016

---

# SHORTCODE DISPLAY SPECIFIC CATEGORY

 *  Resolved [Lanalmanza](https://wordpress.org/support/users/lanalmanza/)
 * (@lanalmanza)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/)
 * Hi! im trying to display a category into a page with a shortcode, i need to get
   separated two categories.
 * Im using [adverts_list columns=”3″ posts_per_page=”40″ category=”firstcaregoryname”]
 * but its calling all adds, even from the other category.
 * ¿How can i write the shortcode for displaying two different listings ?
 * Help! 😀
 * [https://wordpress.org/plugins/wpadverts/](https://wordpress.org/plugins/wpadverts/)

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

 *  [4ewebmaster](https://wordpress.org/support/users/4ewebmaster/)
 * (@4ewebmaster)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-6874669)
 * Hi!
 * I think you should use the Category ID, rather than it’s name. Something like
   this
 * [adverts_list columns=”3″ posts_per_page=”40″ category=”737″]
 * Hope this helps.
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-6874689)
 * Hi, yes [@4ewebmaster](https://wordpress.org/support/users/4ewebmaster/) is right.
 *  [nadheem68](https://wordpress.org/support/users/nadheem68/)
 * (@nadheem68)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-8426977)
 * My website home page contains content. i want to add wpadvert search bar alone
   not with lists. so when i search ,it redirect to the page.. hw can i do that?
 * [https://wordpress.org/plugins/wpadverts/](https://wordpress.org/plugins/wpadverts/)
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-8432510)
 * You need to use [adverts_list] shortcode with show_results and redirect_to params.
 *     ```
       [adverts_list show_results="0" redirect_to="http://example.com/adverts/"]
       ```
   
 * where [http://example.com/adverts/](http://example.com/adverts/) is an URL to
   page with [adverts_list] shortcode which displays results.
 *  [sites1545](https://wordpress.org/support/users/sites1545/)
 * (@sites1545)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-8466223)
 * where does this shortcode go ?
 * [adverts_list show_results=”0″ redirect_to=”[http://example.com/adverts/”%5D](http://example.com/adverts/”%5D)
 *  [nadheem68](https://wordpress.org/support/users/nadheem68/)
 * (@nadheem68)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-8467301)
 * [adverts_list show_results=”0″ redirect_to=”http://example.com/adverts/”]
 * paste this code in any of your page.
    it will show search bar(show_results=”0″)
   only not the list.. if you search anything, it will redirect to the link you 
   give in (redirect_to=”http://example.com/adverts/”).

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

The topic ‘SHORTCODE DISPLAY SPECIFIC CATEGORY’ 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/)

## Tags

 * [search form](https://wordpress.org/support/topic-tag/search-form/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 6 replies
 * 5 participants
 * Last reply from: [nadheem68](https://wordpress.org/support/users/nadheem68/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-display-specific-category/#post-8467301)
 * Status: resolved