Category Archives: Wordpress

WordPress Search Results Page Modifications

A collection of useful snippets to help when customising a Wordpress Search Results Page.

Continue Reading →

Prefix WordPress post permalink without affecting custom post type permalinks

This snippet of code shows you how to change the structure of your WordPress URL’s from /your-post-slug to /blog/your-post-slug without changing other post types URL, by creating a rewrite rule and modifying the output of the_permalink() and get_permalink().

Continue Reading →

Create a Custom WordPress Menu Walker, Extending Walker_Nav_Menu Class

This article explains how to change Wordpress’s output of wp_nav_menu() by creating a custom menu walker to output only a section of one of your wordpress menus.

Continue Reading →

Create Custom Post Status in WordPress using register_post_status()

This article explains how-to create a custom post status, populating the post status drop down menu with your status giving you the ability to change post status from the wordpress post editor seciton.

Continue Reading →

Hard Code WordPress Menu Items, logout example

This guide will take you though using and installing a Wordpress menu onto your theme, showing you how to add menu items through Wordpress’s administration interface and how to hard code them via your themes functions.php file

Continue Reading →

WordPress disable specific plugin from being updated

Want to stop a certain plugin from being updated by a client, maybe the last release of the plugin before a major update change.

Continue Reading →

WordPress: Password protecting a post

An introduction to changing your posts viability, and how to remove Protected: and Private from your post titles.

Continue Reading →

WordPress is child to selected page

This snippet of code is very useful when creating sub navigation in WordPress. It allows you to check if a page is a child of a specific page.

Continue Reading →

get_the_content() not formatting when output

Using get_the_content() instead of the_content() function in your theme, to modify the content before displaying it on the website but the output is different when using the_content(). WordPress get_the_content() does not run its formatting functions.

Continue Reading →

get_terms not showing any results

Trying to display a list of all your wordpress categories or any other taxonomy, but no results are being displayed? WordPress get_terms() function by default does not show any empty taxonomies.

Continue Reading →