Add custom field to Posts and sort by it

Question

I want to add custom field, named score, for each post individually and store it in database so I can later order posts by that field. I need to make it available on post edit to change this value, so it would basically be an input text field which accept numbers 0 to 5. To do this, do I have to create custom post type, or is there a way to achieve it with ordinary posts section?

0
, , nikname 2 years 2020-08-31T12:10:56-05:00 0 Answers 45 views 0

Leave an answer

Browse
Browse