archive page sidebar not working

It working now this is the right template with the code i should use Thanks for help <?php /** * Archive Template * * Displays an Archive index of post-type items. Other more specific archive templates * may override the display of this template for example the category.php. * * @package Thematic * @subpackage Templates … Read more

Declaring arguments for taxonomy

The third argument of add_action is the priority, or order in which functions hooked to an action will be executed. from add_action in codex: (optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed … Read more

Automatically show ‘taxonomy’ meta box by default in Appearance > Menus?

Thanks @guiniveretoo, perfect 🙂 Finally this is how I did (this code is used for the menu page screen options): /* Just use to find your screen_id */ add_filter(‘current_screen’, ‘the_current_screen’ ); function the_current_screen($screen) { if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) return $screen; print_r($screen); return $screen; } /* Just use to display the options … Read more

Counting posts by certain author with custom taxonomy

$args = array( ‘taxonomy’ => ‘special’, ‘posts_per_page’ => -1, ‘author’ => 2 ); $author_category_posts = new WP_Query($args); $count_of_posts_by_author = $author_category_posts->post_count; You can fetch the number of posts made by that author in specific taxonomy.

Display posts from tagchildren of taxonomy tagparents

If anyone’s interested, below is the solution that worked out for me. Credits go to Akshay Paghdar. $taxonomyName = “group”; $terms = get_terms($taxonomyName,array(‘parent’ => 0)); echo ‘<ul>’; foreach($terms as $term) { echo ‘<li><a href=”‘.get_term_link($term->slug,$taxonomyName).'”>’.$term->name.'</a>’; $term_children = get_term_children($term->term_id,$taxonomyName); echo ‘<ul>’; foreach($term_children as $term_child_id) { $term_child = get_term_by(‘id’,$term_child_id,$taxonomyName); echo ‘<li><a href=”‘ . get_term_link( $term_child->name, $taxonomyName ) . … Read more

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