justinos
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Same problem here, menu doesn’t work on mobile phones.
Thanks for your fast response! Disabling Gravatar solved the problem! You made me happy and i’m going to try out the plugin right now 🙂
Forum: Fixing WordPress
In reply to: Not working custom navigationI found the solution with a little help from someone else. Its quiet easy, but very hard to find on the internet.
I just had to change wp_query in page.php to something else. Apparently WordPress gets confused with normal wp_query tag.
I changed this code, and it works fine now:
<?php $count = 1; ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $forsale_query = new WP_Query( array( 'paged' => $paged, 'post_type' => 'ridesforsale', 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => 20) ); ?> <?php while ( $forsale_query->have_posts() ) : $forsale_query->the_post(); ?> <?php $imageBrandbox = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> ...code here... <?php $count = $count+1; ?> <?php endwhile; wp_reset_query(); ?> <?php wp_reset_postdata(); ?> <div class="clearboth"></div> <?php kriesi_pagination($forsale_query->max_num_pages); ?>
Viewing 3 replies - 1 through 3 (of 3 total)