Load posts into sidebar and paginate via ajax?
You need to wrap the nonce with quotes and instead of the_permalink() and the_title() use get_permalink() and get_the_title() so like this: <?php $args = array(‘posts_per_page’ => 1); $sidebar = new WP_Query($args); if ( $sidebar->have_posts() ) : while ( $sidebar->have_posts() ) : $sidebar->the_post(); ?> <div class=”story”> <a href=”https://wordpress.stackexchange.com/questions/76921/<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a> </div> … Read more