Year: 2018
-
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
-
How to make dynamic bootstrap divs with vue for loop?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to make dynamic bootstrap divs with vue for loop? Laravel is one of the top php mvc framework and growing very faster. I liked Vue Js code because its simple and clean. Here is the working code for make dynamic bootstrap divs with…
Written by
-
How to use sessions and other libraries in codeigniter?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to use sessions and other libraries in codeigniter? Codeigniter is one of the top php mvc framework and growing very faster. Here we will use sessions and other libraries in Codeigniter controller file: Controller File: public function __construct() { parent::__construct(); $this->load->library(‘session’);//session library…
Written by
-
Tables Relationship in Laravel to get data
Hello to all, welcome to therichpost.com. In this post, I will tell you, Tables Relationship in Laravel to get data. Laravel is one of the top php mvc framework and growing very faster. Here is the working to get data from multiple tables with relationship: Product-table Model: public function categories(){ return $this->hasMany(‘App\Category’,’product_id’); } Category-Table Model:…
Written by
-
How to Upload Multiple Files in Laravel?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to Upload Multiple Files in Laravel? Laravel is one of the top php mvc framework and growing very faster. Here is the working code for upload Multiple files in laravel: This is just an exmple code: $files = $request->file(‘file’); if($request->hasFile(‘file’)) { foreach ($files as…
Written by
-
How to Mapping Props to an Array in React?
Hello, welcome to therichpost.com. In this post, I will tell you, How to Mapping Props to an Array in React? Reactjs is a Javascript Library to build user interface. Here is the example code for this: Object.keys() is used to convert the object to array, and create the JSX using Array.map(): const props = { “links”: {…
Written by