1

Let's say you have a homepage where you want to be able to feature 10 posts of various types (posts, pages, and Custom Post Types). You have hundreds of these posts to choose from. What would be the best, most userfriendly way to allow a user to select and sort posts that will appear on the homepage, without using a plugin? The catch is that the publication date is irrelevant, so you might have both very old and very new posts appearing together on the homepage.

You might do this by adding a custom taxonomy like "Featured on Homepage" and then run a query using that taxonomy term. But then what happens when the user adds more than 10 posts to the term? Do you exclude the older posts? Randomly exclude everything after the tenth post? Do you require that the user remove the term from posts she no longer wants on the homepage? Or do you require that the user sort these posts herself, maybe by page order (except some content won't have page attributes)?

It's pretty easy to solve this by using a plugin like Advanced Custom Fields Pro (Post Relationships) or Simple Page Ordering, but I'm wondering if there's a good, user-friendly solution that doesn't require a plugin?

2
  • 2
    You can use the drag/drop feature of the native menu builder. Here's an example with a shortcode, to make it easy to use inside posts/pages or even in text widgets that support shortcodes. – birgire Mar 9 '15 at 18:49
  • That's a cool solution: a menu basically becomes the homepage. I guess it would be a little counterintuitive at first (why do I edit my homepage under the menus screen?) but otherwise it's definitely userfriendly. – Josh M Mar 9 '15 at 18:58

Your Answer

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

Browse other questions tagged or ask your own question.