WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Single checkbox defaults don't work (8 posts)

  1. toastyghost
    Member
    Posted 1 year ago #

    I have a meta query that finds posts that do NOT have a checkbox checked (they are not checked by default). I make a new post and it clearly doesn't have the checkbox checked before or after saving, but the meta query doesn't find it until I check the checkbox, save, uncheck it, and save again.

    http://wordpress.org/extend/plugins/types/

  2. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi toastyghost,

    Hope you are using latest version of WordPress and Types. Please share your meta query for replicating and tracking the issue.

    [ Signature moderated. ]

  3. toastyghost
    Member
    Posted 1 year ago #

    I do have the latest of both. Here's the query:

    query_posts(array(
    	'paged' => get_query_var('paged'),
    	'posts_per_page' => 5,
    	'post_type' => 'executive-searches',
    	'orderby' => 'date',
    	'order' => 'DESC',
    	'meta_query' => array(
    		array(
    			'key' => 'wpcf-display',
    			'value' => 1,
    			'compare' => '='
    		),
    		array(
    			'key' => 'wpcf-filled',
    			'value' => array(0,'',false,null),
    			'compare' => 'in'
    		)
    	)
    ));

    edit: sorry for backtick noob

  4. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi toastyghost,

    There is a bug, we are debugging it. Please confirm are you using WPML plug-in ?

    [ Signature moderated. ]

  5. toastyghost
    Member
    Posted 1 year ago #

    No I'm not. Our site is for a regional event, so no need to localize for different languages.

  6. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi toastyghost,

    We will try to solve the issue in upcoming version of Types 1.3. Thank you for informing the bug. Please wait. We are expecting to release the new version in two weeks.

    [ Signature moderated. ]

  7. toastyghost
    Member
    Posted 1 year ago #

    Thanks for the timely responses. I'll be keeping an eye out for your releases. This is a great plugin!

  8. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you very much Toastyghost.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.