Support » Plugin: Advanced Post Manager » Arrange events in ascending or descending order

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor ggwicz


    Hey @dutchpuzzle,

    Thanks for reaching out!

    It sounds like what you’re trying to do would ultimately be possible by coding a “Start Date” filter so that it’s set to “On and After” the current date; this would retrieve events that are starting today or in the future, AKA “upcoming events.”

    Do you agree? Here’s a screenshot of that filter in action, for reference:×1200.png

    Next, you would like the results of this query to be sorted by their start date.

    This is unfortunately a pretty tricky thing to pull off. You’d have to custom code the auto-filtering so that it dynamically makes the “On and After” date be “today”.

    Then you would have to write some code to ensure that the results are always filtered by their start date to show the soonest events first.

    I’m sorry to bear this news, but this is unfortunately a very complex customization to make and one that falls far outside the scope of support we can provide 🙁

    Even if you were to try and just make your own filter, separate from the two elements I describe above [or from Advanced Post Manager altogether], it’s a complicated thing to pull off and would require a significant amount of code. If this option is one you are interested in, I would recommend using the pre_get_posts() hook within WordPress to begin doing that. You can learn more about that hook here:

    This is an interesting idea for a filter, so I would also recommend posting this idea on our UserVoice page at–users can “vote” on ideas here and we often use this information to make new features in the plugins.

    I’m sorry that we can’t dive into the plugin code directly to write this customization for you, but I hope the information here is helpful nonetheless.

    Finally, if you are interested in hiring someone to build this for you, we have a list of well-respected developers available for hire here: [Link redacted]. We have no affiliation with these folks, they’re just some great developers in the community whose names we’ve compiled for sharing in situations like this one.

    Best of luck with your project!


    Moderator Andrew Nevins


    WCLDN 2018 Contributor | Volunteer support

    @ggwicz, I’m afraid links like the one I redacted will turn these threads into a bidding war. It’s best to forward people onto WP Jobs instead:

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Arrange events in ascending or descending order’ is closed to new replies.