Display posts per year.

  • Unknown's avatar

    I’ve been trying to get the display shortcode to only display posts from one year but I can’t seem to figure out how to do this. Below is my code.

    [display-posts wrapper="ol" category="featured-nonfiction" year= "2018"]

    I’d like to filter out all other posts except for a certain year. If this is possible, how do I do this?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello Blindjourno,

    Thanks for writing in!

    I am tagging a support staff to assist you. Please be patient while they come.

    Best,
    obt

  • Hi –

    I think it’s easiest to do this by assigning a unique tag or category to all the posts from that year. Then you can link that list directly on to the page that you’re working on.

  • Unknown's avatar

    I will look into doing taxonomy queries. I was hoping to keep the tags only to publications, etc. But I’ll take another look. I also tried adding the date= perammiter but that didn’t work either.

  • The topic ‘Display posts per year.’ is closed to new replies.