wp_list_pages change of children and anchor of parent

You can use Walker: extend the Walker_Nav_Menu class in your functions.php class custom_nav extends Walker_Nav_Menu { function start_el (&$output, $item, $depth, $args) { $item_output=”<a href=”” . $item->url. ‘” someattr=”somevalue”>’ . $item->title . ‘</a>’; $output .= ‘<li>’ . apply_filters (‘walker_nav_menu_start_el’, $item_output, $item, $depth, $args); } } and call it in wp_list_pages <?php wp_list_pages(array( ‘walker’ => new … Read more

How to get tags and categories?

get_the_terms( $id, $taxonomy ); is what you’re looking for, I guess. You can pass array as $taxonomy param. So this snippet: $posttags = get_the_terms($post->ID, array(‘category’, ‘post_tag’)); should do exactly what you’re trying to achieve.

Show latest custom post types on dashboard

This is because by default the paramater for post_type is post. To include all the post type add the below to you arguements $args = array( ‘numberposts’ => 5, ‘post_type’ => ‘any’ ); The above will include all the post_types including pages and custom post types and if you would to include specific post types … Read more