Admin Event Filter in Post order not Alphabetic

Home Forums Calendar Products Events Calendar PRO Admin Event Filter in Post order not Alphabetic

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #942117
    Amanda Rehagen
    Participant

    It would make much more sense for these to be listed in alphabetic order rather than by the willy-nilly order in which a new venue, or organizer, is added to TEC. I am willing to alter the base plugin code to fix this oversight, knowing that a new update will break the fix, unless you have created a hook that will allow me to sort this before output in a relevant order.

    You can see in the screenshot the list on the left, and on the right the postID’s are in descending numeric order.

    Venues Displayed in Reverse postID order

    #942291
    Barry
    Member

    Hi Byron,

    Yes that is a bit odd and actually we’re planning on making some substantial changes to APM (Advanced Posts Manager – the component that generates the Filters & Columns box) that should hopefully clean up a number of things 🙂

    In the meantime, you can modify this without hacking core code by using this filter hook:

    tribe_custom_rowecp_venue_filter

    This is expected to return the dropdown markup (a simple HTML select element) and you could therefore generate your own and order the venues however you like 🙂

    #942710
    Amanda Rehagen
    Participant

    I can’t find this filter listed anywhere in your source.

    #942752
    Barry
    Member

    Hi Byron,

    It’s composed dynamically so searching for the full string – tribe_custom_rowecp_venue_filter – won’t turn anything up. You can find where this takes place in the source at:

    vendor/advanced-post-manager/lib/tribe-filters.class.php:554

    I hope that helps!

    #942808
    Amanda Rehagen
    Participant

    I am pretty close to a solution, but I was hoping to use the Tribe select_field() function in the same file @ ln592 to maintain consistency. Is there are way for me to call that function from within my custom theme’s function.php filter hook?

    I used a custom WP_Query and loop to generate a key/value pair array to feed into the select_field() function.

    Thank you. You have been very helpful so far.

    #942860
    Barry
    Member

    Possibly – but, really, this is very much custom development territory and these changes are something that you as the implementing developer will need to drive forward under your own steam: while we’re always happy to point people in the right direction, I’m afraid changes of this nature are beyond the scope of support we can offer on this forum.

    With that in mind I’ll go ahead and close this topic – but I do wish you luck and of course if any other issues crop up please feel free to create new forum posts and one of the team will be only too happy to help.

    Thanks again!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Admin Event Filter in Post order not Alphabetic’ is closed to new replies.