1

Let say I want to separete posts on how big or important they are. I want to set some kind of label on them so I can display them with different style. I want to create some values to choose from, like the post formats.. Should I create a custom taxonomy or custom fields? Or can I create Custom post formats?

1
  • what about sticky posts?
    – David Lee
    Commented Feb 27, 2017 at 20:56

1 Answer 1

0

You can do all that within the loop using if conditions. So let's say in the loop you have an article element wrap with the title and content inside. If you have if conditions that check for something, like meta data for example, output one article wrap, and another for another if statement, or else statement. Making use of template-part will also be helpful to keep your loop code small.

Edit: stick to standard WP data if possible just to keep things in house, but custom meta or custom fields would be useful.

I hope I've explained that well. On my phone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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