• Resolved asefredrikson

    (@asefredrikson)


    Hello,

    I have a hard time understanding the documentation unfortunately.
    What shortcode to add if I’d like to list the posts from category XXX?

    TIA!

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

    (@diddledani)

    Hi,

    You should be able to use a shortcode like:

    [a-z-listing display="posts" post-type="post" taxonomy="category" terms="xxx"]
    

    I am guessing your term isn’t named “XXX”, so you will need to replace the slug xxx with the slug(s) of your categories separated by commas: ,. To use a different taxonomy (i.e. a taxonomy that is not categories) you will need to change the slug category to the slug of your taxonomy. I’ve assumed you want to show the post-type of Posts; if you want to show pages you can change post-type="post" to post-type="page".

    Thread Starter asefredrikson

    (@asefredrikson)

    Thank you so much! Worked like a charm!

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’ll mark this as post resolved then.

    Please come back if you need any more input 🙂

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

The topic ‘List posts from specific Category’ is closed to new replies.