Latest Articles

Introducing wpXtreme

Since we presented wpXtreme we realized that many have not understood what this project has potential. With this first article I would like, as well as CTO of wpXtreme Saidmade , explain everything that we have done and are doing to make wpXtreme something unique.

What wpXtreme?

wpXtreme is a project, a stratup if you prefer, but really - or physically - what products or services are we talking about? In the first instance wpXtreme is primarily a WordPress plugin for free download (soon) that provides immediate access to a number of improvements and services:

wpXtreme Schemas

More ...

wpXtreme: dope your WordPress

I am now about 4 years since I founded with my two partners Saidmade Nicola and Matteo , 4 years were very intense, full of satisfaction, but in some ways also very tiring. Since the beginning of this journey, we believed in an opensource project which is now considered the top: WordPress .

We spent days and days to do research and development on this platform and we can safely claim to have "turned inside out". I made ​​this little introduction to introduce the new startup and we're working on where we are concentrating all the experience accumulated over the years: wpXtreme .

More ...

WordPress folder functions: all paths lead to WordPress

WordPress offers many ways to access the names of folders and build new ones. Here's a useful list with examples performed, to be more clear, from a subfolder located in a hypothetical plugin:

Plugins

We begin with plugins_url() used to determine and build url when you write a plugin.

plugins_url ()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/ / If this line is performed by
/ / Http://www.miosito.com/wp-content/plugins/my_plugin/classes/test.php

plugins_url ( ) ; $ R = plugins_url ();
/ / Http://www.miosito.com/wp-content/plugins/

plugins_url ( 'myscript.js' , __FILE__ ) ; $ R = plugins_url ('MyScript.js', __ FILE__);
/ / Http://www.miosito.com/wp-content/plugins/my_plugin/classes/myscript.js

plugins_url ( 'assets' ) ; $ R = plugins_url ('assets');
/ / Http://www.miosito.com/wp-content/plugins/assets

trailingslashit ( plugins_url ( 'assets' ) ) ; $ R = trailingslashit (plugins_url ('assets'));
/ / Http://www.miosito.com/wp-content/plugins/assets/

More ...

WordPress: get_posts () and orderby

negli argomenti passati negli inputs. Through get_posts() you can select a sequence of exact post using the parameter post__in in arguments over the past inputs. . The order, however, is not consistent with the sequence indicated as WordPress performs checks on the clause ORDER BY in the select statement, even though version 2.8 is available from the value of none .

More ...

Anonymous functions

I was asked what the advantage or disadvantage in the use of anonymous functions or inline (or onfly), used heavily in Javascript, and now with 5.3, also in PHP.
An inline function, or anonymous because he has not - in fact - a name, is a quick way to write some procedures, indenting tree sequences callback example. Almost all languages ​​support functions of this writing, to limit each with its peculiarities and restrictions. They may also have different names and syntax details, such as the so-called blocks in Objective-C.

More ...

Poll: CMS Software and Paid

Snippets

WordPress Snippet: extract meta get_posts value with ()

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

More ...

WordPress Snippet: the action save_post

When adding fields to add pages and posts, or to get Custom Post Type (CTP), you have to record an action to save these new data. The implementation of this procedure is essentially always the same, changing only the fields and how to save, the extra data can reside in the 'custom field', or the table post [...]

More ...

WordPress Snippet: is_page () on Custom Post Type

If you recorded your own Custom Post Type (CPT), especially if you type 'page', you could serve to determine if you are viewing that particular page, the 'single' so to speak. In this case it is useless to try is_page () or is_page_template (). The clean solution is as follows: 123456if (is_singular ('cpt_key')) {global $ post; if ($ post-> post_name [...]

More ...

WordPress 3.3: jQuery all finally

With WordPress 3.3 and jQuery also all its modules have been aligned. Now it is possible to access the new list of modules in the latest release 3.3, such as the autocomplete. Here's a snippet for a good inclusion: 123456 / / modules that WordPress will load for us preparatory to the script "MyScript.js" $ deps = array ('jquery-ui-slider', 'jquery-ui-datepicker', 'jquery-ui -autocomplete '[...]

More ...

Tips & Tricks

Very short trick: maintenance mode via IP

When developing a product (website, blog, Facebook Application) online, if you have not been able to build an infrastructure development / operation may be necessary under certain circumstances to "off-line" service, for updates, or debug operations maintenance. WordPress, for example, can be disabled using simple and handy plugin, as Maintenance Mode.

More ...

Very short trick: log JavaScript objects

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

More ...

Very short trick: how to use NSFileManager

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

More ...

Tutorials

iPhone FontsBook: source code to display the system font

Rounding out the article How to: Custom fonts on iPhone OS 3.2 will propose that the sources of FontsBook, a simple iPhone application that shows a table all system fonts, grouped by family.

More ...

How to: Custom fonts on iPhone OS 3.2

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

More ...

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

The UIView class exposes a pointer to the layer (CALayer), an object of lower level with countless possibilities. The layer provides a range of methods and properties related to displaying the contents of the view. For example, you can manipulate the contents of a view in three dimensional space. In the example I quote is interesting [...]

More ...

Objective-C: obtain information from Latitude and Longitude

Reply to Mirko asking me how to make the opposite case proposed in How to get Latitude and Longitude in Objective-C. Starting from the values ​​of Latitude and Longitude you can use the class MKReverseGeocoder to obtain a range of information, such as: city, state, address in full, chap!

More ...

Very short snippet: slideshow 10 lines of code

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

More ...

How to get Latitude and Longitude in Objective-C

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

More ...

Objective-C

Objective-C: Addendum on notifications and delegates

With multiple video AVQueuePlayer

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

Xcode4: backward compatible code

Objective-C: Notifications and Delegates

PHP

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

WordPress Snippet: add styles and scripts to Custom Post Type

WordPress Snippet: src thumbnail

WordPress Delete Post

Sort an array of arrays in PHP

Javascript

Bug Fixed: on calendar year range jQuery UI

PhpStorm 2.0

jQuery snippets

Very short snippet: how to identify calls Ajax in PHP

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

CSS

The logical rule in CSS

WordPress shortcode Table

Firefox 3.5.7: how to fix the defect of the rounded edges of an image

Customizing a Form graphically

A WordPress theme for all


Stop SOPA