Category: Wordpress Tricks
-
Best Practices – WordPress Plugin Making Part 2
Hello to all, welcome to therichpost.com. In this post, I will continue with, Best Practices – WordPress Plugin Making Part 2. Here is the first part : Best Practices WordPress Plugin Making In this plugin making code, I am creating page in wordpress admin pages section during plugin activation and I think, this is awesome. In this…
Written by

-
Best Practices – WordPress Plugin Making
Hello to all, welcome to therichpost.com. In this post, I will tell, Best Practices – WordPress Plugin Making. WordPress is the top CMS in the world and I personally like it very much. Today I am going to tell, how wordpress plugin will make with proper wordpress standards. In this post, I will create plugin folder-> …
Written by

-
WordPress Query – Show Woocommerce Products in Frontend
Hello to all, welcome to therichpost.com. In this post, I will tell you, WordPress Query – Show Woocommerce Products in Frontend. I am using Bootstrap 4 table for show Woocommerce products data. With the help of WordPress wp_query, I am getting the Woocommerce Products data. I am showing limited data but we can get products data…
Written by

-
Wp query display woocommerce product based on category name
Hello to all, welcome to therichpost.com. In this post, I will tell you, Wp_query display woocommerce product based on category name. Here is the code for Wp_query display woocommerce product based on category name and you can this code any of your wordpress theme’s template file: <?php $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 10, ‘product_cat’…
Written by

-
Woocommerce get order total on daily basis
Hello to all, welcome to therichpost.com. In this post, I am sharing the code for, how to get Woocommerce get order total on daily basis? Woocommerce is the best e-commerce plugin for shopping websites. Here is the working code for Woocommerce get order total on daily basis: // functions.php file code function get_daily_purchases_total(){ global $wpdb; return $wpdb->get_var(…
Written by

-
How to remove image from wordpress post content?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to remove image from wordpress post content? Here is the working code and you can add this into your wordpress theme’s any template file: $content = get_post_field(‘post_content’, $post_id); $content = preg_replace(“/<img[^>]+\>/i”, “”, $content); //or $content = get_the_content(); $content = preg_replace(“/<img[^>]+\>/i”, ” “,…
Written by

-
Woocommerce custom shop page wordpress template
Hello to all, welcome to therichpost.com. In this post, I am sharing the code to make Woocommerce custom shop page wordpress template. Woocommerce is the most popular e-commerce plugin for WordPress. It is very easy to use and integrate and there are also so many hooks in Woocommerce, which makes woocommerce customization very easy. Here is…
Written by

-
How to hide wordpress content from non logged in users?
Hello, welcome to therichpost.com. In this post, I will tell you, How to hide wordpress content from non logged in users? 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

-
How to disable WordPress admin dashboard for non-admin users?
Hello, welcome to therichpost.com. In this post, I will tell you, How to disable WordPress admin dashboard for non-admin users? 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 going…
Written by

-
How to get woocommerce products order status count with wordpress custom post query?
Hello, welcome to therichpost.com. In this post, I will tell you, How to get woocommerce products order status count with wordpress custom post 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.…
Written by
