How to set “manage categories” capabilities on a post type taxonomy but not on the general categories?

you can just define your own capabilities to use this taxonomie ‘manage_terms’ => ‘manage_terms_TAXONOMIE_NAME’, ‘edit_terms’ => ‘edit_terms_TAXONOMIE_NAME’, ‘delete_terms’ => ‘delete_terms_TAXONOMIE_NAME’, ‘assign_terms’ => ‘assign_terms_TAXONOMIE_NAME’, and after you choose wich capabilities you give to your users

Group & Sort Taxonomy terms by letter – Is there a better way?

Here is the way I did it, add_action(‘the_content’, ‘lm_alpha_order’); function lm_alpha_order($content){ if(is_page(‘alphabetique’)){ $args = array( ‘taxonomy’ => ‘media_tag’, ‘hide_empty’ => true, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’ ); $terms = get_terms(‘media_tag’, $args); $azRange = range(‘A’, ‘Z’); echo ‘<div class=”half left” style=”float:left;padding-left: 2em;”>’; foreach ($azRange as $letter) { $letter_outputs=””; $the_letter =false; //print(“$letter\n”); $count = 0; $ul=”<ul … Read more

How to show one post content in another post content which has same terms?

I have solved the problem myself: What I did is: First created single-football_league.php template where i placed following codes: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘content-parts/content’, ‘league’ ); ?> <?php endwhile; ?> Second: In content-league.php, I placed following codes, and it works: $terms = wp_get_post_terms( $post->ID, array(‘competition’, ‘session’) ); $term_slugs = … Read more

WordPress Multiple Taxonomy Query

Perhaps you can add a hidden field to the HTML which will pass the ‘relation’ => ‘OR’. <input type=”hidden” name=”tax_query[relation]” value=”OR”> <select name=”tax_query[][country]” multiple> <option value=”united-kingdom”>United Kingdom</option> <option value=”ireland”>Ireland</option> </select> <select name=”tax_query[][type]” multiple> <option value=”director”>Director</option> <option value=”partner”>Partner</option> </select> Which translates to: tax_query[relation]=OR&tax_query[][country]=united-kingdom&tax_query[][type]=director Array ( [tax_query] => Array ( [relation] => OR [0] => Array ( … Read more

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