• Resolved getaka

    (@getaka)


    Hi Odude,
    I want to sort flexi post based on meta key flexi_view_count value. The following code is not working. Can you please support

    $custom_query = new WP_Query(array(
    	'post_type' => array('flexi'),
    	'meta_key'  => 'flexi_view_count',
    	'orderby'   => 'meta_value',
    	'order'     => 'DESC'
    ));

    I want something like this;
    [flexi-gallery orderby = “flexi_view_count”]

    The page I need help with: [log in to see the link]

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

    (@odude)

    orderby count is still not supported.

    Thread Starter getaka

    (@getaka)

    Hi,
    I know it’s not supported yet, but what if I wanted to achieve this programmatically? How can I run the custom query by meta_key and meta_value?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order Flexi Post by flexi_view_count’ is closed to new replies.