Title: Using meta_compare=&quot;
Last modified: August 30, 2016

---

# Using meta_compare="

 *  Resolved [TakiraThemes](https://wordpress.org/support/users/takirathemes/)
 * (@takirathemes)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/using-meta_compare/)
 * Hi,
 * Trying to use the plugin with meta_compare=”<” but I get the short code back 
   as text and its not working, if I change it to meta_compare=”>” it all works 
   fine,
 * I sow somebody else wrote about it here but I could not understand how he solved
   it,
 * Thanks.
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751256)
 * Im not able to reproduce this.
    Can you post your entire shortcode?
 *  Thread Starter [TakiraThemes](https://wordpress.org/support/users/takirathemes/)
 * (@takirathemes)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751306)
 * Yes,
 * Here is my code, thanks for the help
 *  $date_today = date(“Y-m-d”);
    echo do_shortcode(‘[ajax_load_more meta_compare
   =”<” post_type=”conference” meta_key=”ending_date” meta_value=”‘.$date_today.'”
   meta_type=”DATE” orderby=”meta_value_num” posts_per_page=”8″ button_label=”More
   Events”]’);
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751334)
 * Looks fine, sorry im not sure what would be causing this.
 *  [AKdigital](https://wordpress.org/support/users/akdigital/)
 * (@akdigital)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751384)
 * Is there any way to solve this problem,
 * I cant get this to work, any idea ?
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751385)
 * You can’t get the ‘<‘ to work either?
 * I can’t reproduce the issue so Im having a hard time debugging.
 *  [AKdigital](https://wordpress.org/support/users/akdigital/)
 * (@akdigital)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751386)
 * Yes,
 * Do you want me to send you a link for the site ?
 * It seems someone had this problem and solved it, but cant understand his answer.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751387)
 * I don’t think he actually solve it.
    Sure, send me a link. Do you think it’s 
   an encoding issue?
 *  [ssalgado](https://wordpress.org/support/users/ssalgado/)
 * (@ssalgado)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751449)
 * Did anyone figure this out? I’m having the same issue now. Greater than works
   fine but less than breaks the shortcode.
 *  [ssalgado](https://wordpress.org/support/users/ssalgado/)
 * (@ssalgado)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751450)
 * Ah, I found this [article](https://wordpress.org/support/topic/meta_compare-is-breaking?replies=3)
   that talks about a workaround.
 * AKdigital, the workaround is essentially using the HTML number for the less than
   symbol, instead of the Symbol itself.
 * **change this**
    meta_compare=”<“
 * **to this**
    meta_compare=”<“
 * It’s working for me.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751451)
 * You can use ‘lessthan’ or ‘lessthanequalto’ in the shortcode.
 * I convert this on the backend to the symbol.
 * This isn’t documented yet.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751452)
 * [https://github.com/dcooney/wordpress-ajax-load-more/issues/98#issuecomment-166471656](https://github.com/dcooney/wordpress-ajax-load-more/issues/98#issuecomment-166471656)

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

The topic ‘Using meta_compare="’ 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/)

 * 11 replies
 * 4 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/using-meta_compare/#post-6751452)
 * Status: resolved