Template taxonomy-{taxonomy}.php doesn’t show my posts

Well, first of all, you are not doing anything with the $term variable. You are querying it, but then it sits there, waiting to be picked up. Try this code in your taxonomy template, called taxonomy-hardware_category.php: // prepare the variables for the query $tax = get_query_var(‘taxonomy’); $term = get_query_var(‘term’); // Setup the loop, build the … Read more

Why is my archive page looping through all but one post?

As @Jacob Peattie says, pagination is what’s causing this, and probably what you want to add if you will have more posts over time. If you want you can disable pagination for archive pages easily with this in your functions.php: function wpse_disable_pagination( $query ) { if (is_archive()) { $query->set(‘nopaging’, 1 ); } } add_action( ‘pre_get_posts’, … Read more

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