Loop in taxonomy for terms and post

There are a few things wrong: In your code you are using the same $args array in the WP_Query call that you used in your get_terms call. Perhaps you meant to use $postargs in the WP_Query call? @Milo is correct…you should be using posts_per_page, not number. Your tax_query array element ‘field’ says ‘name’ but you … Read more

Grab next post title in archive page

This doesn’t seem terribly efficient but you could just look up the next/prev posts in the loop used to display the post then output the post titles in the nav calls. // loop if ( have_posts() ) : while ( have_posts() ) : the_post(); // … post display // next & prev post data $older … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)