Change the order by from event start date to comment count

Home Forums Calendar Products Events Calendar PRO Change the order by from event start date to comment count

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22616
    Ashley
    Participant

    Hi Support
    I have the 2.0.8 Version of The Events Calendar plugin, and the Pro version.

    Ive implemented a small ratings script that basically save a 1 to 5 value in the comment_karma field. What I am trying to do is query the the events ordered by the comment_count.

    Is there an easy way to remove the filter from being applied? Or would I have to try add my own pre_get_posts filter which would run after the tribe_events ones. If so what priority do those run at?

    #22617
    Ashley
    Participant

    There is another reason I would like to know how to remove/edit the filters. I created a search widget which just extends the normal wordpress search form. I simply added some inputs with the post_type and the taxonomies.

    When I get to the search results the URL looks like this (see below). When the page loads the events filters seem to be adding to all of my queries on the page. (eg. nav_menu, widgets). Meaning they dont return the correct info. If I could remove/edit the filters then it fixes the problem.
    “?monthnum=&year=&cat=0&cat2=0&s=mtn&post_type=event&submit=Search”

    #22651
    Rob
    Member

    Hey Ashley. If I understand correctly what you’re going for, our list of filters/hooks on the documentation page should help you out. Those are at https://theeventscalendar.com/support/documentation.

    Have you checked that out already? If not, take a look. Otherwise if I misunderstood your issue or you’re still stumped from there let us know. Cheers!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change the order by from event start date to comment count’ is closed to new replies.