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

how to add older post to new wordpress post with new post?

If you have your old database and uploads folder, you can install WordPress and give it that database. Then, you can use the wordpress importer/exporter to export the posts, then upload it to your new site using the same plugin. If your old site is much larger, it may even be easier to take an … Read more