• 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/

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    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"]
    
    Thread Starter iHuongDan Blog

    (@ihuongdanvn)

    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

    Plugin Author Dani Llewellyn

    (@diddledani)

    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

    (@ihuongdanvn)

    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.

    Plugin Author Dani Llewellyn

    (@diddledani)

    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

    (@ihuongdanvn)

    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.