Author: therichpost
-
Get Featured Image URL WordPress
Welcome to therichpost.com. In this post, I will tell you, Get Featured Image URL WordPress. Like I always say WordPress is the best cms. Here is the working code: $thumb_id = get_post_thumbnail_id(); $thumb_url_array = wp_get_attachment_image_src($thumb_id, ‘thumbnail-size’, true); $thumb_url = $thumb_url_array[0]; or <?php if (has_post_thumbnail( $post->ID ) ): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),…
Written by

-
Check Empty Elements With Jquery
Hello, welcome to therichpost.com. In this post, I will tell you, Check Empty Elements With Jquery. I personally like jquery very much. Most of my code is full with jquery. When I stuck in php or other language then that stuckness I remove with jquery code. Today, we will check, div has text or any…
Written by

-
Check Html Element hasAttr with jquery
Hello, welcome to therichpost.com. In this post, I will tell you, Check Html Element hasAttr with jquery. I personally like jquery very much. Most of my code is full with jquery. When I stuck in php or other language then that stuckness I remove with jquery code. Today, with my code, we will check, html…
Written by

-
How to show of an array data in Laravel view?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to show of an array data in Laravel view? Laravel is one of the top php mvc framework and growing very faster. In this post, we will show laravel array controller data in laravel view and here is the working code for…
Written by

-
WooCommerce Single Product Page add_action Hooks
Hello, welcome to therichpost.com. In this post, I will tell you, WooCommerce Single Product Page add_action Hooks. 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 is the best thing about wordpress.…
Written by

-
How to remove the user avatar from WordPress admin toolbar?
Hello, welcome to therichpost.com. In this post, I will tell you, How to remove the user avatar from WordPress admin toolbar? Like I always say WordPress is the best cms. Here is the working code to remove user avatar from wordpress admin toolbar and you need to add this into your theme’s functions.php file: add_action(‘admin_head’,…
Written by

-
Redirect WordPress guest user if he tries to access a specific page
Hello, welcome to therichpost.com. In this post, I will tell you, Redirect WordPress guest user if he tries to access a specific page. Like I always say WordPress is the best cms. If guest user, in our wordpress website and we don’t want guest user to access our wordpress page then we can redirect that…
Written by

-
How to get Get author avatar for particular user inside the loop?
Hello, welcome to therichpost.com. In this post, I will tell you, How to get Get author avatar for particular user inside the loop? Like I always say WordPress is the best cms. Today In this post, we will get author avatar image in wordpress post loop and there are various methods and here are the…
Written by

-
WordPress hook load wp_enqueue_style only for specific plugin admin page
Hello, welcome to therichpost.com. In this post, I will tell you, WordPress hook load wp_enqueue_style only for specific plugin. Like I always say WordPress is the best cms. In this, I will tell you, If you want to load style for specific plugin admin page then please use below trick and here is the working…
Written by

-
How to delete the default post type and category in wordpress?
Hello, welcome to therichpost.com. In this post, I will tell you, How to delete the default post type and category in wordpress? Like I always say WordPress is the best cms. In this post, I will tell you code to remove default post type in wordpress dashboard menu and here is the working code: add_action(‘admin_menu’,’remove_default_post_type’);…
Written by
