If you’ve created sub categories in WordPress and want to display bespoke content if your category archive page has a specific parent, then here’s how!
Shortcodes are a great and easy way to output simple (or very sophisticated) content in your posts/pages via plugins or inbuilt WordPress shortcodes, but how would you output this directly in your theme files?
On occasion you might want to exclude certain pages or posts from the search page on your WordPress site. Learn how to do this with just a little bit of code.
Would you like to use variables on certain menu items? Perhaps you want to count a category and display that total alongside your label. We’ll show you how to do that in this quick guide.
This bit of code will take the current URL as seen in the browser, explode (separate) it by / and then create an array that includes the category id, name, slug etc, then put’s them into variables for easy access.
When building or editing a WordPress theme, you might want to get the URL of a specific image by it’s ID. Here’s how to do it using the ‘wp_get_attachment_url’ function.
A reading list for web developers looking to try their hand at WordPress theme development. This list aims to give you a better understanding of WordPress’s core functionality, such as it’s hierarchy and the loop, then leads on to creating a basic theme.