Category: PHP

PHP tutorials and code snippets to help beginners and advance users. PHP web store hosting services and development.

Screen options on Add/Edit posts 0

How to create custom shortcode in WordPress?

Shortcode in WordPress. In WordPress we can create custom shortcodes and we can show its output anywhere on the site. To create a shortcode, we will use WordPress built in function add_shortcode(), this function...

0

How to specify connection in migrations Laravel 5?

Laravel 5 Migrations Migrations are like version control for your database, which allow us to modify database schema and stay up to date on the current schema state. Migrations are typically paired with the...

Screen options on Add/Edit posts 0

How to create widget to show latest posts?

Create WordPress widget for latest posts WordPress providing sidebar widget for latest post which is just for post type posts not for any custom post types. So to create widget that fetches posts from...

0

How to set foreign key checks to zero in laravel 5?

Set Foreign Key Checks While running migrations or seeding or importing data by running scripts, we might need to set foreign key checks to zero in database during these processes in laravel 5 programming....

0

How to get value from PHPExcel_RichText Object?

Get Value from PHPExcel_RichText Object We can read and create excel, csv files from phpexcel library. While reading excel file with phpexcel, you might get richtext object like following. We can’t simply get PHPExcel_RichText...