Posts from the category 'WordPress'

WordPress Auth Driver for Laravel

laravel-wordpress
The WordPress Auth Driver for Laravel Composer package allows you to authenticate users in your Laravel application against an existing user table from a WordPress installation. The package exposes two Laravel service providers: WordPressAuthServiceProvider extends the auth driver with a new “wordpress” user provider. WordPressHashServiceProvider provides a new service “wordpress-hash” which hashes values using the same library that WordPress uses. …

Read More »

How to hide custom post types from the “link to existing content” list in WordPress

Wordpress
When developing a custom WordPress theme for a client we came across an annoying quirk in the WordPress editor user interface. I had added a custom post type to their theme to allow the client to create a database of service providers. However, once their database was populated, we discovered that the “link to existing content” list in the “Insert/edit …

Read More »

Variable scope in WordPress template parts

Wordpress
I was building a custom WordPress theme for a client site when I came across a frustrating problem with variable scope.¬†I was modularising the theme using template parts, which get loaded using the get_template_part function. This particular template was displaying a list of posts of a custom post_type from a call to the get_posts¬†function and I wanted to be able …

Read More »

« 
 »