Display only the latest post

Your query arguments, formatted to be readable, look like this: $args = array( ‘taxonomy’ => $taxonomy, ‘term’ => $term->slug, ‘posts_per_page’ => 1, ‘orderby’ => ‘modified’, ‘category’ => $str ); That does not match any argument pattern I see for WP_Query. I think you are trying to construct a tax_query but that should look like this: … Read more

How to get all the terms of a post

Well to print each term you could loop through each object and echo the name and description foreach ($terms as $theterm) { echo $theterm->name . ” ” . $theterm->description; } Is this what you are looking for? [EDIT] Updated the answer

Add a tag like a post

There is no native functionality in WordPress to relate posts to each other (only group posts with taxonomies). You will either have to develop custom solution, or try to make use of existing plugins. Posts 2 Posts is considered staple for post relationships.

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