Add function to add element on all page

To do this you have to create a function in your plugin. To have it display only to logged in users use: if (is_user_logged_in()) { then use the wp_head and wp_footer links to add actions to display the link you want, ie: add_action(‘wp_head’,’your_function’); add_action(‘wp_footer’, ‘your_function’);

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.