Correct syntax to html php conversion
you are missing the three curly brackets in before wp_reset_postdata(). backup your code and replace with this. <?php $args = array(‘post_type’ => ‘menu’, ‘posts_per_page’ => 5, ‘post__in’ => $ids, ‘post_status’ => ‘any’, ‘orderby’ => ‘post__in’); $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); if (is_page(538) ) … Read more