Created
May 20, 2015 22:43
-
-
Save richardsongo/6e603b9c7587d0dcbd44 to your computer and use it in GitHub Desktop.
Make a Craft entry Sticky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How would I make a post(s) sticky so that it appears first in the results and does not repeat later in the results? | |
| 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') %} | |
| http://craftcms.stackexchange.com/questions/2149/is-there-a-sticky-post-function-built-into-craft?lq=1 | |
| http://craftcms.stackexchange.com/questions/2146/from-a-template-how-can-you-order-entries-by-one-field-and-if-that-field-is-em |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment