WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
[resolved] Sort by exp date stopped working (4 posts)

  1. drcalcart
    Member
    Posted 1 year ago #

    I had a query to display a certain category of posts on a parent page, sorted by expiration date. It was working fine until I recently updated Post Expirator, then it stopped working.

    The method I was using was the following:

    $args = array(...'meta_key' => 'expiration-date', 'orderby' => 'meta_value');

    The query returned nothing unless I took those meta_key/orderby args out.

    Please advise. Thanks.

    http://wordpress.org/extend/plugins/post-expirator/

  2. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    This information is in the changelog - the meta_key was renamed to _expiration_date

  3. drcalcart
    Member
    Posted 1 year ago #

    Looked in the change log.
    Should be _expiration-date

    Thanks.

  4. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    Thats what I get for typing too fast - glad your set!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic