Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Resolved] Show posts in order I add them in ID box

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Show posts in order I add them in ID box

Tagged: 

  • This topic has 3 replies, 2 voices, and was last updated 8 months ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14254
    Dan
    Participant

    Hello, I have a site I am trying to add posts in a specific order by their ID. Like 81, 2, 13, 9. I have tried every way I can think of and it never loads in that order. Using ASC or DSC or Data works fine, but it just disregards the order I want them in. Any ideas on how to make this work?
    Thanks

    #14260
    Tom
    Keymaster

    You need to set orderby to post__in, which requires manual settings:

    [wp_show_posts id="123" settings="orderby=post__in"]

    Let me know if you need more info 🙂

    #14262
    Dan
    Participant

    That worked! Is that in the documentation somewhere and I missed it?
    Thank You Tom!

    #14280
    Tom
    Keymaster

    It’s not, but it definitely should be. Noted.

    Glad I could help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.