WPBrigade Blog
Latest WordPress Tutorials, Lists and Resources
-
Last updated on August 29th, 2026 by Muhammad Adnan
Avoid Spammy Links in WordPress Posts with LinkPatrol
I’m a big believer of Content Is King. Whenever I started a new blog the very first thing or goal is to write great contents, focus on the headings, and display images that capture readers attention. Though these are BIG factors in search ranking, sometimes we make small little mistakes that could destroy everything that we have built so far. For example, linking to a website that later on become a 404 page or turn into a bad site i.e pornographic. If you barely know about this, it’s not too late to fix it. In this article, I will show…
-
Last updated on August 29th, 2026 by Muhammad Adnan
Make Author.php Include Custom Post Types
I was going through a strange issue where Author page was not showing the posts which belongs to Custom Post Types. After Googling, I found this article which shows how to include Custom Post Types for archives.php I got inspiration from above mentioned article snippet and wrote the following snippet to modify Author.php page to include Custom Post Types function wpbrigade_author_custom_post_types( $query ) { if( is_author() && empty( $query->query_vars[‘suppress_filters’] ) ) { $query->set( ‘post_type’, array( ‘post’, ‘my-custom-post-type-here’ )); return $query; } } add_filter( ‘pre_get_posts’, ‘wpbrigade_author_custom_post_types’ );

