Improving WordPress Shortcode Usability

In this tutorial we are going to talk about WordPress shortcodes and what I think is the missing piece with shortcodes in WordPress. First I'll start by saying I really like shortcodes, it allows you to give the author of the website full control of the content on the site and where it is positioned. What Is A Shortcode? A shortcode allows the user to run a PHP function at

Read more...

Free Files For November 2014

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free in November 2014. JBMarket Currency Rates - Standalone 72 purchases at the price of $4. J.B.Currency Rates is a widget

Read more...

Override Theme Template In Plugin

In this tutorial we are going to look at how you can override a theme template file from within a plugin. When WordPress displays a piece of content it selects the theme template by using a hierarchy of files, for example if you want to view the content of the a single post the WordPress hierarchy is: single-{post_type}.php single.php index.php This works by searching for the single-{post_type}.php file in the

Read more...

Add Custom Meta To Taxonomies

In this tutorial we are going to learn how we can add additional data to your taxonomies. WordPress comes with the ability to add meta data onto both the posts and user objects. These are stored in separate tables such as the wp_postmeta and wp_usermeta tables. Both of these tables use a key and value pair columns to store the different data just like in the wp_options table. There is

Read more...

REM Sass Mixin With Pixel Fallback

The REM CSS unit is similar to the EM CSS unit except it allows you to size elements relative to the root of the HTML tag, as it stands for Root EM. The EM unit is relative to the font-size of the parent, which can cause problems in working out the correct size to use in descendent elements. Because the REM is relative to the root we can set the

Read more...

Display Submenu Only On Parent Page

The in-built WordPress menu system allows the content author to create a menu by a simple drag n drop interface, it allows you to select existing posts, page or let you create custom links to add to the menu. Using the drag n drop interface you can select child elements on the menu. When you output the menu on your theme using the function wp_nav_menu() WordPress will automatically create the

Read more...

Register New Post Statuses In WordPress

WordPress posts allow you to have some form of workflow when editing your posts. This is done by assigning a post status for each stage of the WordPress posts. By default the WordPress will take up the status of Draft which tells WordPress to create a post but not to publish it on the front-end of the site, it will only publish it on the site when you hit the

Read more...

Change WordPress Email Content Types To HTML

All emails in WordPress are sent using the function wp_mail, the default content type for these email are in text/plain, which does not allow HTML to be placed in your emails. If you want to create custom HTML emails you need to change the content type of the emails to allow you to have HTML in them. To change the content type of WordPress email you can use the filter

Read more...

Free Files For October 2014

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free in October 2014. Twitter Timeline Slider for WordPress 11 purchases at the price of $11. This plugin give an opportunity

Read more...

Output Contents Of A Doctrine Object

I've being doing a lot of development with Doctrine recently and one of the things that I found out is that the Objects it works with can be huge which makes debugging the objects quite difficult for you and the browser to process. If you haven't used Doctrine before you really should give it a try. Doctrine is essentially a set of PHP class libraries that are focused on database

Read more...

1 2 3 4 5 6 7 8 9 68