Category Archives: Wordpress

Discovering that your website has been hacked can be a very traumatic experience. It can have a great effect on your google ranking, make you an unwilling promoter of content that you do not endorse and in some cases result in loss of content and / or business. Here I will run you through some of the vital steps to getting your website back online, and how to keep it secure in the future. Change your passwords / usernames The...
Continue Reading
I thought I’d share with you a handy little code snippet that enables you to add an “email this page” link to your WordPress posts and pages, without the need for a plugin. It is just one line of code, placed within the loop. <a href="mailto:?subject=<?php the_title(); ?>&amp; body=<?php the_title(); ?> - <?php the_permalink(); ?>">E-Mail This Page</a> As you can see, in the form of a href, we have created a simple mailto, that takes information from the post as...
Continue Reading
This post will describe the easy method of nesting your wordpress archives in a dropdown list using jQuery and some simple CSS. The default function The default options that WordPress offers in displaying your blogs archives are rather rigid, in that you can only display them in one way. Using the wordpress wp_get_archives function we can set the following options: <?php wp_get_archives('type=daily'); ?> To display a list of archives grouped by date. <?php wp_get_archives('type=weekly'); ?> To display a list of archives grouped...
Continue Reading
Using the WordPress menu feature has made it fairly simple for developers to add advanced styling to their WordPress navigation menus. It creates classes such as: current_page_item – To highlight the current page current_page_parent – To highlight the current pages parent current_page_ancestor – To highlight any ancestor of the current page WordPress automatically adds these classes to the menus on your site, meaning styling these elements is a simple matter of adding some CSS. There is one important class it...
Continue Reading
This WordPress tutorial will guide you through the process of displaying extra elements such as the featured image in the WordPress posts list. The default display A default list of posts in your WordPress admin panel will look something like the following: With tags, comments, and the date published normally displayed too. But what if we wanted to display the featured image of each of these posts in our list? The extended display To display our featured images in this...
Continue Reading
A common feature popping up on many WordPress websites and blogs is to have a landing page for the blog where the latest few blogs posts are displayed. Furthermore, these pages tend to only show the first few lines of text of said posts. This post will show you an extremely easy way to display a certain amount of the post content whilst maintaining any HTML tags (including links and formatting) that it might contain. The Code I wasn’t lying...
Continue Reading
In my second WordPress tutorial I will guide you through the process of creating individual options pages. First off, I think it is necessary to explain exactly what I mean by an “individual WordPress option page”. Whilst there are several tutorials available that tell you how to create a generalized WordPress options page, there seems to be nothing that tells you how to create standalone edits. By this I mean, say if wanted to add an extra menu item to...
Continue Reading
As the first of many WordPress tutorials, here I will guide you through the process of creating a fully content managed Jquery carousel using WordPress. Step 1: Creating the content To create a content managed carousel we firstly need to create a new custom post type. This involves adding some code to your themes “functions.php” file. Open the file (or create it if it doesn’t exist) and add the following code at the very top: add_action( 'init', 'create_post_type' ); function...
Continue Reading