How to bulk add vast amounts of posts

Try the following: Right click on this link and save the XML full of dummy content provided by WordPress In the sample data, you can remove the unwanted data such as pages, comments, categories, etc. Go to Tools > Import in the admin panel Install the “WordPress” importer from the list Activate & Run Importer … Read more

Editing the default page to show all posts, rather than most recent ones

you have to set “post_per_page” to “-1”. Add this code to your home or index.php. WP_Query (recommended) $args = array(‘posts_per_page’ => -1); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) : $the_query->the_post(); the_title(); the_content(); endwhile; /* Restore original Post Data */ wp_reset_postdata(); } else { // no posts … Read more

How not display particular post?

This has worked for me. Can you try it and replace the excluded ID by the id of post you want to exclude. add_filter( ‘pre_get_posts’, ‘exclude_specific_post_id’ ); function exclude_specific_post_id( $query ) { if ( $query->is_main_query() ) { $query->set( ‘post__not_in’, array( ‘YOUR_EXCLUDED_POST_ID_HERE’ ) ); } }

Get user categories with most posts in it

Your question is slightly ambiguous, but I read it this way: given an author and you want to know the three categories in which has published most posts. Let’s use wp_query to get there. $author=”johndoe”; $author_posts = new WP_Query (array ( ‘author’ => $author, ‘posts_per_page’=>-1, )); Now we have an array of all posts by … Read more