ioqu
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Themes and Templates
In reply to: [Hueman] How to custom posts display by categories?Hi bdbrown, could you please introduce some plugins that provide that functionality? Do you think that the child theme is good for me in my situation?
Thanks.Forum: Themes and Templates
In reply to: track sql queryIs there any invisible sql query belongs to WP theme?
Forum: Themes and Templates
In reply to: Need to change the sub menu colour from a light graystyle.css
line 1508.main-navigation li ul li a { background: none repeat scroll 0% 0% #EFEFEF;line 1521
.main-navigation li ul li a:hover { background: #e3e3e3; color: #444; }Forum: Themes and Templates
In reply to: track sql queryWho can tell me where are the 6 IDs came from?
Forum: Themes and Templates
In reply to: track sql querymy searchpage.php:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $district = $_GET['district']; //get the district from form $args = array( 'post_status' => 'publish', 'paged' => $paged , 'posts_per_page' => '12', 'relation' => 'AND', 'meta_query' => array( array( 'key' => '_description_value', 'value' => $district, 'compare' => 'LIKE' ) ) ); $query = new WP_Query( $args ); ?> <?php if ( !($query->have_posts()) ) : ?> --------do nothing------- <?php else : ?> <?php while ( $query->have_posts() ) : $query->the_post(); ?> --------loop------- <?php endwhile;?> <?php wp_reset_postdata();?> <?php endif; ?>I think the $query is null, it should do nothing. But it got 6 IDs in array[27], that confused me a lot.
Viewing 5 replies - 1 through 5 (of 5 total)