Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
this should work for you: if ( is_user_logged_in() ): global $current_user; wp_get_current_user(); $author_query = array(‘posts_per_page’ => ‘-1′,’author’ => $current_user->ID); $author_posts = new WP_Query($author_query); while($author_posts->have_posts()) : $author_posts->the_post(); ?> <a href=”https://wordpress.stackexchange.com/questions/23829/<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a> <?php endwhile; else : echo “not logged in”; endif;
You have to run through each blog and fetch the recent attachments with: $args = array ( ‘post_type’ => ‘attachment’, ‘numberposts’ => 30 ); $attachments = get_posts( $args ); Dashboard widgets are registered on wp_network_dashboard_setup in multi-site and wp_dashboard_setup in single-site. Make sure to add the following line to the plugin header to get the … Read more