Latest Articles

WordPress: actions run during a typical request by admin

Here is the sequence of action that are performed during a typical request from backend. Comments, additions and corrections are very welcome.

Continued ...

WordPress: actions run during a typical request by frontend

Here is the sequence of action that are performed during a typical request from frontend. Comments, additions and corrections are very welcome.

Continued ...

WPDK: thinking Object-Oriented

Think of objects is critical (and natural) in some programming languages. In Objective-C, for example, there is no thing that can not be designed and molded to objects. In PHP this practice is less common, because the language is a bit recently, object-oriented, a little bit because it does not offer much in terms of OO programming, and a little bit because the same PHP programmers have perhaps fear of burdening or embarking on situations apparently solved by writing code more linear.

Continued ...

WPDK: coding style

The framework WPDK began as a compendium and development aid on WordPress. It therefore does not want to replace the core, but it needs to deal with the current structure of the code. For a variety of reasons, some understandable and others a little less, WordPress core exposes a sometimes poorly structured. Lacks homogeneity, consistency, both at logic level and at the level of code style.

Continued ...

WPDK: PHP Overloading

The overloading is characteristic of many object-oriented languages ​​can distinguish two or more methods called in an identical manner from the differences of the parameters. Be careful because as indicated in the PHP manual:

PHP's interpretation of "overloading" is different than most object-oriented languages. Overloading traditionally Provides the ability to have multiple methods with the same name but different quantities and types of arguments.

However, if PHP was actually typed and would include overloading, you could write:

Continued ...

WPDK: Javascript pattern

Continuing our tour on WPDK, today I want to explain the pattern used in the Javascript framework.
Javascript has many patterns , what we have chosen (a variant of the Module Pattern) believe maintains a good similarity with PHP, while still providing excellent advantages at the script level. The similarity I sought because some classes have their own counterpart Javascript in PHP, or vice versa.

Continued ...

Snippets

WordPress folder functions: all paths lead to WordPress

WordPress offers many ways to access the names of its folders and build new ones. Here is a helpful list with examples performed, to be more clear, from a subfolder located in a hypothetical plugin: Plugins start with plugins_url () useful to determine and build url when you write a plugin. plugins_url () 1234567891011121314 / / [...]

Continued ...

WordPress: get_posts () and orderby

Using get_posts () you can select a post using the exact sequence of the arguments passed in the parameter post__in inputs. The order, however, is not consistent with the sequence shown as WordPress performs checks on the ORDER BY clause of the select, in spite of version 2.8 is available the value none.

Continued ...

WordPress snippet: extract meta value with get_posts ()

Working with a Custom Post Type (CPT) it is natural to use the internal functions of WordPress to view and filter the posts of this kind. Whether you use the get_posts () is that it creates an object directly WP_Query, it's very comfortable to create loops on their own personal types of posts. WordPress also allows you to make filters [...]

Continued ...

WordPress snippet: the action save_post

When adding additional fields to pages and posts, or to their own Custom Post Type (CTP), you must record an action to store this new data. The implementation of this procedure is basically always the same, changing only the fields and how to save, the extra data can reside in a 'custom field', which is the table after [...]

Continued ...

Tips & Tricks

Very short trick: maintenance mode via IP

When developing a product (website, Blog, Facebook App) online, if you have not been able to build an infrastructure development / operations, it may be necessary under certain circumstances put "off-line" service, upgrades, debugging or interventions maintenance. WordPress, for example, can be turned off using simple and convenient Plugin, as Maintenance Mode.

Continued ...

Very short trick: log of JavaScript objects

If you are to develop in an environment where it is impossible to use debugging tools such as FireBug, such as the Apple iPad simulator Xcode, it can become frustrating to identify problems, one all wrong access to the properties of an object. Here the use of the works alert () is fundamental!

Continued ...

Very short trick: how to use NSFileManager

Apple recommends using the NSFileManager instance of the object and not its meotodo class defaultManager, as the latter returns an instance singleton, that is always the same pointer to object (not thread safe).

Continued ...

Tutorials

iPhone FontsBook: source code to display the system font

To complete the article How to: custom fonts on iOS 3.2 I propose the source of FontsBook, a simple iPhone application that displays in a table all system fonts, grouped by family.

Continued ...

How to: custom fonts on iOS 3.2

How to insert and use personal fonts in our applications iPhone / iPad, only for iOS 3.2 +

Continued ...

Objective-C: how to rotate an image in 3D space

The UIView class exposes a pointer to the layer (CALayer), subject to a lower level with endless potential. The layer provides a number of methods and properties related to the display of the contents of the view. For example, you can manipulate the contents of a view in three dimensional space. In the example it is interesting to carry [...]

Continued ...

Objective-C: Getting information from Latitude and Longitude

I respond to Mirko asking me how to make the reverse proposed in How to get Latitude and Longitude in Objective-C. From the values ​​of latitude and longitude, you can take advantage of the class MKReverseGeocoder to get a whole range of information, such as: the city, the state, the extended address, chap!

Continued ...

Very short snippet: slideshow in 10 lines of code

Let me demonstrate how it is possible to implement a simple slideshow of images with very few lines of code, using jQuery. This technique can be implemented on any type of website, the important thing is to include the jQuery library. I used this technique for a site built in WordPress, developed in a few hours for an event.

Continued ...

How to get Latitude and Longitude in Objective-C

The MapKit framework provides a lot of useful features, except the return Latitude and Longitude from an address. In JavaScript, for example, you can use the service provided by Google Geocoding and discussed in Google Maps: how to get Latitude and Longitude from an address. On Apple iPhone, or iPad, you can, however, exceed [...]

Continued ...

Objective-C

Objective-C: addendum on notifications and delegates

Multiple video with AVQueuePlayer

Objective-C: how to best use the property list file

Xcode4: code backwards compatible

Objective-C: notifications and delegates

PHP

WPDK: how I did it

WPDK WordPress Development Kit

Anonymous Functions

Bachi beginning of the year: WordPress and WPML get_page_by_path update ()

WordPress snippet: is_page () on Custom Post Type

Javascript

How to fix the bug in iStat Pro on Mountain Lion

WordPress 3.3: all jQuery finally

Bug Fixed: jQuery UI range on the calendar years

PhpStorm 2.0

jQuery snippets

CSS

The rule in the logical CSS

Table WordPress shortcode

How to select a group of tags that do not have children of a certain type

FireFox 3.5.7: how to solve the defect of the rounded edges on an image

Customize a Form graphically