Category: Wordpress Tricks
-
How to display products from specific product category with wordpress wp_query?
Hello, welcome to therichpost.com. In this post, I will tell you, How to display products from specific product category with wordpress wp_query? WordPress is the best cms. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the best thing about wordpress. Now I…
Written by

-
How to Exclude categories from RSS feed WordPress?
Welcome to therichpost.com. In this post, I will tell you, How to Exclude categories from RSS feed WordPress? Like I always say WordPress is the best cms. Here is the working code for Exclude categories from RSS feed WordPress and you need to add this into your theme’s functions.php file: function exclude_cat_wps($query) { if ($query->is_feed)…
Written by

-
How to Change the author slug WordPress?
Welcome to therichpost.com. In this post, I will tell you, How to Change the author slug WordPress? Like I always say WordPress is the best cms. Here is the working code for Change the author slug WordPress and you need to add this into your theme’s functions.php file: add_action(‘init’, ‘cng_author_base’); function cng_author_base() { global $wp_rewrite; $author_slug…
Written by

-
How to disable automatic updates in wordpress?
Welcome to therichpost.com. In this post, I will tell you, How to disable automatic updates in wordpress? Like I always say WordPress is the best cms. Here is working code to stop automatic updates in wordpress and you need to add this into wp-config.php file: //To disable automatic updates for major releases or development purposes, the…
Written by

-
How to get wordpress theme information?
Welcome to therichpost.com. In this post, I will tell you, How to get wordpress theme information? Like I always say WordPress is the best cms. Here is the working and tested for How to get wordpress theme information: <?php $theme_data = wp_get_theme(); echo $theme_data->get( ‘Name’ ); echo $theme_data->get( ‘ThemeURI’ ); echo $theme_data->get( ‘Description’ ); echo $theme_data->get(…
Written by

-
How to Add custom attribute to wordpress the_post_thumbnail?
Welcome to therichpost.com. In this post, I will tell you, How to Add custom attribute to wordpress the_post_thumbnail? Like I always say WordPress is the best cms. Here is the working and tested code and you need to add this with your the_post_thumbnail: the_post_thumbnail( ‘thumbnail’, array(‘itemprop’=>’image’) ); There are so many tricks in wordpress and i…
Written by

-
How to get WP_query posts according acf field values?
Welcome to therichpost.com. In this post, I will tell you, How to get WP_query posts according acf field values? Like I always say WordPress is the best cms. Here is working and tested wp_query posts according to acf fields value and you can add this code any your theme’s template file: <?php $args = array(…
Written by

-
WordPress 404 error page after form submission
Hello, welcome to therichpost.com. In this post, I will tell you, WordPress 404 error page after form submission. WordPress is the best cms. Today I faced one strange error in wordpress custom form submission. Today I have made custom form for user enter details and but when I submitted that form, I got wordpress 404…
Written by

-
How to Override WordPress Child Theme styling to Parent theme?
Hello, welcome to therichpost.com. In this post, I will tell you, How to Override WordPress Child Theme styling to Parent theme? WordPress is the best cms. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the best thing about wordpress. Now I am…
Written by

-
Hide woocommerce add to cart button after added to cart
Hello, welcome to therichpost.com. In this post, I will tell you, How to Hide woocommerce add to cart button after added to cart? WordPress is the best cms and Woocommerce is the best Ecommerce plugin. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this…
Written by
