How would I make a post(s) sticky so that it appears first in the results and does not repeat later in the results?

  • 1
    FYI, your three comments are really all extensions of your original question. I'd recommend editing your question to include the entire train of thought... otherwise, you're really only having a conversation with yourself. – Lindsey D Aug 26 '14 at 8:07

You could add a custom lightswitch field or similar and order your entries by that field.

{% set entries = craft.entries.section('news').order('myLightswitch desc') %}

If you need additional sort options, @Brad just shared how to do that with SQL in the order() parameter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.