• Resolved Gazimaluke

    (@gazimaluke)


    For some reason I just can’t get it to work as I want. Let’s say I have a category called ABC and I want to list all posts in that category.
    What would the shortcode be for that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gazimaluke

    (@gazimaluke)

    I want to list all the items in a category called “Family Computer”, the slug is “familycomputer”.
    So the short code I am trying is [a-z-listing display=”posts” taxonomy=”category” terms=”familycomputer”]. The result is that nothing gets listed.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You haven’t specified a post-type so the default is used, which is page. Categories are normally not associated with the page post-type, so I think you likely want to tell the plugin that you want the post-type of post:

    [a-z-listing display="posts" post-type="post" taxonomy="category" terms="familycomputer"]
    
    Thread Starter Gazimaluke

    (@gazimaluke)

    Thanks, that was it.

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

The topic ‘Listing posts from category’ is closed to new replies.