Term specific featured post on taxonomy archive pages

The way to go would be to create an archive template for your taxonomy. Then you can catch the term requested with a function like get_queried_object(). So now you can do a custom WP_Query querying for both your term and your meta ‘featured’ Hope that makes sense http://codex.wordpress.org/Class_Reference/WP_Query http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display

Sorting on Taxonomy in archive page

You did not specify a taxonomy term in tax_query. It should go: ‘tax_query’ => array( array( ‘taxonomy’ => ‘taxonomy_name’, // my guess ‘field’ => ‘name’, ‘term’ => ‘Term name’ ), ), I prefer using ‘field’=>’slug’ in such cases as term names are more likely to be changed. And also change order by ‘title’ to ‘post_title’as … Read more

How to display term in archive page?

Use wp_get_object_terms function to get any taxonomy you want, category, tag, state, etc. For example: $terms = wp_get_object_terms(get_the_ID(), ‘state’); $state = array_pop($terms); echo $state->name; This function is returning array of terms, so in case you only have one state, it will return array of one item in it.

How to create TEMPLATES for TAXONOMIES? What I have to change in this code?

I used: $args = array( … ‘rewrite’ => array( ‘slug’ => ‘portfolio-taxonomies’ ), … ); register_taxonomy( ‘portfolio_taxonomies’, array(‘portfolio’), $args ); So my URL is predictable. And you did one thing wrong, URL you are putting is NOT correct. If the rewrite rule is implemented, then they would be: http://localhost/wp-test/portfolio-taxonomies/taxtemp1/ http://localhost/wp-test/portfolio-taxonomies/taxtemp2/ To grab the correct URL, … Read more

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