All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

Multi line of $wpdb->query just run 1 time and end the loop right after

<?php foreach ( $posts_array as $post ) { $post_id = wp_insert_post($post,true); //var_dump($post); $wpdb->query($wpdb->prepare("UPDATE wp_posts SET VenueLongitude = '$...
0
votes
2answers
187 views

Meta Query doesn't works as espected

i have a little big problem with meta queries. I Designed a query to retrieve posts where any of these words exists in the custom field pickup_address. the field has this string in its meta value: 43 ...
0
votes
1answer
47 views

Meta key in wp_query bug?

$query_args = array( 'post_type' => 'post', 'posts_per_page' => 6, 'order'=> 'desc', 'orderby' => 'meta_value date', 'paged' => $paged ); This is my current query to sort posts. What ...
2
votes
4answers
18k views

WP_Query and using a variable for 'cat'=> in the args array = WP Bug?

For the sake of this discussion, here's a version of my query within category.php: wp_reset_query(); $category_id = get_cat_ID(single_cat_title('', false)); $my_query = new WP_Query(array( '...