Password Protected Pages Excerpt

When you display list posts in WordPress and want to display a snippet of the post content, there are two ways you can do this. You can either use the the_excerpt() function which will return the first 55 words of the post, excluding all shortcodes and images. The other option is to use the the_content() function with the more comment to tell WordPress to break at this point. The more

Read more...

Hide Content on Password Protected Pages

On private websites it can be handy to have password protected pages to stop everyone getting at some pieces of content. In WordPress creating a password protected page is very easy, there is a visibility setting on the publish meta box, when you click edit on here you are presented with 3 options, public, private and password protected. If you choose password protected you simply need to enter a password

Read more...

Force WordPress To Check For Plugin Updates

A good feature of WordPress is the ability to automatically update plugins and themes with just a click of a button. On other CMS's when a new version of a plugin or theme is made available you have to download the plugin and FTP this up to the server to update the plugin. Obviously this isn't ideal if your client isn't very comfortable with making changing to the files on

Read more...

How To Rewrite URLs In WordPress

In this tutorial we are going to look at how you can use the built in WordPress rewriting API to create your own unique links for your website. WordPress will already use this for it's own functionality when you select a new permalink structure. What Is Rewriting? URL rewriting is when you change what content is displayed by the server, normally when you type in a URL the web server

Read more...

Change The Password Protected Text In WordPress

One of the features that I've found content editors find really useful is the password protected pages in WordPress. This is a built in feature that you can use directly from the edit page. To set a password on a page you need to find the publish meta box on the edit post screen, under the visibility menu you will see the password protected textbox. All you have to do

Read more...

Display Post Meta Box On Specific Page Templates

In WordPress you have the ability to create different post types to hold different content, along with the create different post types you can also add new content fields attached to the posts themselves. This will allow you to create a field to enter data linked to the post which can be very useful when you are creating a way of displaying products, you can enter the description of the

Read more...

Continuous Deployment With Dploy.io

In modern day development in both Web and Software it's important to be able to make changes and features quickly, this has lead to a practice of continuous deployment which will work with your code repository to deploy your code as you commit your changes. This differs to the older practice of making changes to your code and using FTP to deploy these to your server. A benefit of continuous

Read more...

Style External Links Differently

When you are writing content on your website there will be times when you want to refer to other content on the internet, this can be to either your own articles or to external sources for other people's content. When you link to external content it's common practice to open this content up in a new tab, this way the reader won't be taken away from there place in the

Read more...

Change Default WordPress Emails

One of the best things about WordPress development is that not only can you use it as a CMS but as an application framework, it comes with a huge selection of utility functions that make it easy to handle form helpers, validation, file structures, email encoding and more. With WordPress actions and filters it becomes a very extendible framework to work with, another way to extend WordPress is with pluggable

Read more...

Style A Specific WordPress Menu Item

The following code snippet will allow you to style a specific menu item differently to the other items. When WordPress creates a menu it will use the menus setup in the WordPress admin, this interface gives the user full flexibility of the what items go in the menu and where they are positioned in the theme. WordPress will automatically add ID's and Classes to these menus so that you can

Read more...

1 2 3 4 5 6 7 8 9 10 11 12 13 65