• Resolved sroskylos

    (@sroskylo1)


    Hello

    I am trying to short and show posts with meta key and meta value.

    The code that i have is

    'post_type'		=> 'post', 
    	'post_status' => 'publish',
    	'meta_key'		=> 'custom_field',
    	'meta_value'		=> date('Y-m-d'),
    	'orderby'		=> 'meta_compare',
    	'order'			=> 'DSC'
    

    How can i set this value on widget

    'meta_value' => date('Y-m-d'),

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hello,
    currently you can use only a string (i.e., the value of a custom taxonomy).

    I’m developing a new feature to get posts from complex queries based on meta keys and values.

    Stay tuned.

    Thread Starter sroskylos

    (@sroskylo1)

    Thank you for your answer @aldolat. Keep up with this nice plugin 🙂

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

The topic ‘Custom fields’ is closed to new replies.