Get $500+ of the best After Effects files, video templates and music for only $20!

Browsing Category

Theme Development

The Complete Guide To The WordPress Settings API, Part 8: Validation, Sanitisation, and Input II

The Complete Guide To The WordPress Settings API, Part 8: Validation, Sanitisation, and Input II

This entry is part 8 of 8 in the series The Complete Guide To The WordPress Settings API

We’ve reached the final article of the series. In the last post, we took a look at introducing validation, sanitization, and a couple of basic input elements that we can take advantage of when building option pages.

In this article, we’re going to take a look at the final set of three options and how to hook them up to the front-end of the theme.

Add Post Type Archive Links to Your Menu

Add Post Type Archive Links to Your Menu

A common request, particularly for those who have created custom post types like ‘News’ or ‘Events’, is to add a link to their post type’s archive page on their navigation menu. Currently, however, this can only be done by manually entering the post type archive URL. Apart from being fairly inelegant, this solution has a few drawbacks: it doesn’t always appear as ‘current’, if you change your permalink structure it could break the link, manually adding the URLs is tedious and the link does not appear as ‘current’ when on a post of that post type.

In this tutorial I will show you how to produce a plugin that creates a meta-box on your Appearance -> Menu page which allows you to add post type archive links. These links don’t suffer from the drawbacks mentioned above.

The Complete Guide To The WordPress Settings API, Part 7: Validation, Sanitisation, and Input I

The Complete Guide To The WordPress Settings API, Part 7: Validation, Sanitisation, and Input I

This entry is part 7 of 8 in the series The Complete Guide To The WordPress Settings API

If you’re just now joining us, we’ve covered a lot of topics in this series – we’ve attempted to give a complete overview of the WordPress Settings API as well as its related functions. We’ve discussed settings, options, navigation, and menus. We’ve also been working through practical examples employing each of the topics we’ve discussed.

Taking WordPress Custom Taxonomies to the Next Level

Taking WordPress Custom Taxonomies to the Next Level

WordPress custom taxonomies are a great way to organise your website’s content, but what are they exactly? How can they be implemented effectively? More importantly though, how can they benefit your website? Fear not, what you’re about to read in the following is the most comprehensive guide to WordPress custom taxonomies you’ll find on the internet today.

Reusable Custom Meta Boxes Part 4: Using the Data

Reusable Custom Meta Boxes Part 4: Using the Data

This entry is part 4 of 4 in the series Reusable Custom Meta Boxes

In Part 1, Part 2 and Part 3 of our custom meta box template tutorial series, we learned how to make a reusable meta box that gets all of the field information from an easy to read, easy to duplicate array. A lot of the data is simple to use by just echoing the meta field in your template or through a function, but some of the fields are more complex and require a bit more finesse to use properly. This tutorial will give you a basic idea of how to use this data and can be expounded on in countless ways.

The Complete Guide To The WordPress Settings API, Part 6: Menu Pages

The Complete Guide To The WordPress Settings API, Part 6: Menu Pages

This entry is part 6 of 8 in the series The Complete Guide To The WordPress Settings API

In Part 3 of this series, we surveyed the various menu functions that the WordPress API provides. If you’ve been following along, then you know that we’ve already setup a settings page for our theme by using the add_theme_page function. Although introducing menus and submenus aren’t explicitly part of the Settings API, they play a role in building custom functionality, plugins, and/or themes.

Add jQuery Autocomplete to Your Site’s Search

Add jQuery Autocomplete to Your Site’s Search

The function get_search_form() can (and should!) be used to display the search form for your site. It does the job, but it’s very bland. Shipped with WordPress since 3.3, however, is a tool which can make using it a lot easier. In this tutorial I’ll be showing you how to add jQuery Autocomplete to your search form.

How to Use Custom Sidebars on Posts and Pages

How to Use Custom Sidebars on Posts and Pages

Today I’d like to show you how to easily add custom sidebars to use within your posts and pages. It could be useful to display different widgets according to your page or post’s topic.

We’ll see how to use WordPress meta boxes to store and retrieve a chosen sidebar for a specific post. Custom sidebars will be added in the theme options section.

Converting WordPress to Be Mobile-Friendly

Converting WordPress to Be Mobile-Friendly

As mobile devices become less of a luxury and more of a necessity, the bottom line is becoming obvious: your fixed-width WordPress theme needs to be responsive. Now’s the time to seriously consider converting your WordPress theme to be mobile-friendly. This tutorial will show you the basic steps to make your site fluid.

Translating Your Theme

Translating Your Theme

It’s very easy to turn a blind eye to other languages when developing your WordPress theme, but this is a very bad habit and immediately turns away a whole market of WordPress users and potentially thousands of dollars in lost revenue. Out of the top 10 countries that search Google for “WordPress themes”, only one is native English speaking (the USA) and that comes 9th. As of writing this, there are only 269 themes in WordPress’ theme database that are tagged as translation-ready out of more than 1,500 themes. That’s only 18% of the themes. I’m going to show you how to make yours one of them.

Page 1 of 912345678...Last »