Free Files For September 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 September 2014. jQuery Shining Image 177 purchases at the price of $8. jQuery Shining Image is an HTML5 jQuery

Read more...

Getting Started With Composer In PHP

In this tutorial we are going to learn about composer and how we can use it to develop our PHP applications. Composer is a tool that allows to manage your third party dependencies in your PHP application, it will allow you to create a list of all third party scripts and libraries and their version number. Composer will then look into the repository of the third party library and the

Read more...

Using AJAX In WordPress

In the following tutorial we are going to learn how you can use AJAX in WordPress to run your own functions. The way this works in WordPress is by allowing you to attach your own actions that you can access from an AJAX request to change the content on the page. What Is AJAX? Normally on a webpage you have to wait for the server to load the content of

Read more...

Sanitize Special Word Characters With PHP

Anybody who has worked with user content on a website will know the problem you get when a user writes the content in Word and copy and pastes this content into a textarea so that you can store it in the database. The problem that you have is that when you want to display this content on the front-end you will get a lot of strange black question marks. This

Read more...

Add Custom User Fields To User Profile Page

In a previous article I explained how you can modify the contact information on the WordPress User profile page, but what if you want to know more custom information from the user that requires more that just a text field. In this tutorial we are going to look at how we can add new fields to the User profile page to collect custom information that requires a dropdown or checkbox.

Read more...

Modify User Contact Fields In WordPress

With WordPress each user has their own profile records, within these profile there are multiple feeds that can be populated by the user to give you more information about them allowing you customise the site a bit for just for them. One of the fields that you can easily customise is the User content information, by default WordPress comes with a number of contact fields such as: E-mail Website AIM

Read more...

Add Scripts To Shortcode Only When Used

Since version 2.5 WordPress introduced a new way of developers to provide dynamic content for the content author of the website with the use of Shortcodes. What Is A Shortcode? A shortcode allows the user to run a PHP function at any point you want in the content. A default shortcode you get with WordPress is the gallery shortcode, to add a gallery to your website all you have to

Read more...

Get A List Of Registered Actions In WordPress

WordPress actions and filters is an event driven architecture that allow you to run specific code at certain times in your application. To do this WordPress uses two functions the add_action() to add new callback functions to an action, and the do_action() function which will run all the callback functions assigned to this action. In a recent project I was testing some code that used AJAX to run an action

Read more...

Change Language Locale From WordPress Plugin

WordPress has the ability to be fully translated, this can be done in both themes and plugins. Translation Files To get WordPress to translate all of the text it uses the GNU gettext system, which wraps all the text on the page in a lookup function call. This function will use the language translation file to lookup non-english words and display them in the required language. The files needed for

Read more...

Flush Permalinks On Custom Post Type

WordPress has the ability to have different post types, the main post type you will use in WordPress is the post type called Post. But there are other defaults such as Pages and Attachments. All the post types in WordPress are stored in the same table wp_posts there is a column on this table which will decide the type of post, this is defined as post_type. In version 3.0 of

Read more...

1 2 3 4 5 6 7 8 9 67