Posts tagged 'themes'

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 »

« 
 »