Title: Using shortcode does not work
Last modified: May 7, 2020

---

# Using shortcode does not work

 *  [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/)
 * (@ihuongdanvn)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/)
 * I installed and displayed AZ listing using the following shortcode: [a-z-listing
   display = “posts” taxonomy = “category” terms = “benh”]
    But it can’t work. Can
   you help me Thank you! My site need help [https://bacsicare.com/benh/](https://bacsicare.com/benh/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-shortcode-does-not-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Dani Llewellyn](https://wordpress.org/support/users/diddledani/)
 * (@diddledani)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12806095)
 * Did you write it exactly like you have above with spaces between the `=` and 
   the words either-side? If so, try removing those spaces so that it looks like
   this:
 *     ```
       [a-z-listing display="posts" taxonomy="category" terms="benh"]
       ```
   
 * Also make sure that the `benh` term exists as a `category` and that you have 
   posts that you have assigned to that category.
 * Note that the `category` taxonomy is not by-default applied to posts of the `
   page` post-type, which is the default post-type that the plugin displays. To 
   display posts from the `post` post-type (wow, many “post”!) you need to add `
   post-type="post"`:
 *     ```
       [a-z-listing display="posts" post-type="post" taxonomy="category" terms="benh"]
       ```
   
    -  This reply was modified 6 years ago by [Dani Llewellyn](https://wordpress.org/support/users/diddledani/).
 *  Thread Starter [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/)
 * (@ihuongdanvn)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12810878)
 * Hello. I added `post-type="post"` and used the syntax: `[a-z-listing display="
   posts" post-type="post" taxonomy="category" terms ="benh"]` It worked but it 
   displayed all the posts on my website. I just want to display the posts in my
   Category “benh”. Can you help me
    -  This reply was modified 6 years ago by [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/).
    -  This reply was modified 6 years ago by [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/).
    -  This reply was modified 6 years ago by [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/).
 *  Plugin Author [Dani Llewellyn](https://wordpress.org/support/users/diddledani/)
 * (@diddledani)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12811175)
 * Hi,
 * Is that a direct copy and paste? You have a space between `terms` and the `=`
   after. It should be `terms="benh"` with no space.
 *  Thread Starter [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/)
 * (@ihuongdanvn)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12811194)
 * I made it very accurate. Because I chose the type of code display when posting
   a comment, it made a mistake. But here’s the syntax I use on the website:`[a-
   z-listing display="posts" post-type="post" taxonomy="category" terms="benh"]`
   and it shows all the articles on my website in the “benh” category.
    -  This reply was modified 6 years ago by [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/).
 *  Plugin Author [Dani Llewellyn](https://wordpress.org/support/users/diddledani/)
 * (@diddledani)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12811762)
 * Your shortcode looks correct. If you have no articles in the benh category it
   might be displaying all posts as a fall-back. I’ve seen this before where when
   a term is empty it shows a list of all posts instead of none.
 *  Thread Starter [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/)
 * (@ihuongdanvn)
 * [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12815999)
 * This “benh” category of mine currently has 100 posts. But it shows all posts 
   from another category 🙁

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

The topic ‘Using shortcode does not work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/a-z-listing_d8edfd.svg)
 * [A-Z Listing](https://wordpress.org/plugins/a-z-listing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/a-z-listing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/a-z-listing/)
 * [Active Topics](https://wordpress.org/support/plugin/a-z-listing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/a-z-listing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/a-z-listing/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [iHuongDan Blog](https://wordpress.org/support/users/ihuongdanvn/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/using-shortcode-does-not-work/#post-12815999)
 * Status: not resolved