Title: undo filter
Last modified: August 24, 2016

---

# undo filter

 *  [sia77](https://wordpress.org/support/users/sia77/)
 * (@sia77)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/)
 * Hi DCooney,
 * What would be the best way to undo a filter? Is the only way would be to manipulate
   the short-code?
 * Thanks,
    Sia77
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/#post-6151967)
 * If your using the filter method, the only way to undo each filter is to update
   all the filter params.
    Does that make sense?
 *  Thread Starter [sia77](https://wordpress.org/support/users/sia77/)
 * (@sia77)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/#post-6152008)
 * Not sure, if it does.
 * Here is what I have done:
    [](https://wordpress.org/support/topic/undo-filter/?output_format=md#)
 * It undoes the filtering, but post are not showing in the same order as the original
   list (When the page is loaded the first time).
 * On the back-end, I’m sorting by what we call the post_weight, and then by date.
   So the way, I understand it if I still want to end up with the same order after
   undoing the filtering, I would need a way of indicating the sorting criteria,
   and values, am I correct on this?
 *  Thread Starter [sia77](https://wordpress.org/support/users/sia77/)
 * (@sia77)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/#post-6152009)
 * I just realized it won’t let me post code, trying again.
 * data-repeater=”default” data-category=”” data-post-type=”” data-posts-per-page
   =”8″ data-scroll=”true” data-button-label=”View More”
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/#post-6152011)
 * Yes, please look at the filtering example on my website.
 * Update every parameter you want to change.
 *  Thread Starter [sia77](https://wordpress.org/support/users/sia77/)
 * (@sia77)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/#post-6152042)
 * data-order=”ASC” data-orderby=”meta_value_num” data-post-type=”post, article,
   event, resource, service, team_member”
 * So I did as above, and it works beautifully, but here is a question:
    It appears
   that even though I’m sorting by “meta_value_num”, it also sorts by date in DEC
   order. If I’m correct about that, then I would like to know how is that possible.
   Please let me know.
 * Thanks,
    Sia77

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘undo filter’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [Short Code](https://wordpress.org/support/topic-tag/short-code/)

 * 5 replies
 * 2 participants
 * Last reply from: [sia77](https://wordpress.org/support/users/sia77/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/undo-filter/#post-6152042)
 * Status: not resolved