Archive April, 2010

How to set automatic thumbnails of all posts

The new feature of WordPress miniatures, introduced with version 2.9 and discussed in WordPress 2.9 +: new feature post thumbnails , can be automated using a simple PHP script. This can be handy when "you forgot" to include thumbnails of each item or if you want to update the previous.

More ...

Very short trick: to customize the view of the categories

Not everyone knows that you can customize the display of categories, very quickly by exploiting a property of the Category Templates. Normally we're used to always see the categories with the file archive.php .

More ...

WordPress: Add a panel on the bulletin board

It may be useful in developing a plugin and not only, place a panel of information, summary or otherwise, directly to the Dashboard (Dashboard) of WordPress, as is the case for standard board of the "Status", "Recent Comments "... etc
Wordpress allows to add our panels in a simple way, using the function wp_add_dashboard_widget() :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/ / First we add a hook through 'wp_dashboard_setup'
/ / To record our role in the creation
, 'example_add_dashboard_widgets' ) ; add_action ('wp_dashboard_setup', 'example_add_dashboard_widgets');

/ / This adds the panel to physically Dashboard
example_add_dashboard_widgets function () {
, wp_add_dashboard_widget ('example_dashboard_widget',
'Example Dashboard Widgets',
; 'Example_dashboard_widget_function');
}

/ / Draw the contents of the panel
example_dashboard_widget_function function () {
; echo "Try My Widgets on Dashboard";
}

The function wp_add_dashboard_widget() has the following synopsis:

1
2
3
4
5
6
7
8
9
10
/ /
/ / $ Widget_id - is a unique identifier type slug.
/ / Will be used also as a class in the style css
/ / $ Widget_name - Name displayed in the Widget Bar
/ / $ Callback - which will show the name of the FunZone conntenuto
/ / $ Control_callback - (Optional) Name of the function used to send
/ / Parameters via form
/ /
, wp_add_dashboard_widget ($ widget_id,
$callback , $control_callback = null ) Widget_name $, $ callback, $ control_callback = null)

More ...

WordPress: Get information about the folder uploads

. WordPress provides a very useful feature, wp_upload_dir() to get a lot of information on the folder uploads . This function returns an array so formed:

More ...

WordPress 2.9 +: new feature post thumbnails

With the latest release of WordPress 9.2 + from, we have introduced a new feature very useful to manage thumbnails, or thumbnails. This feature, however, must be activated in the theme, namely, acting on the file functions.php . This new feature is useful in many contexts and provides a simple and convenient tool for both the developer of a website using WordPress is the final customer who will then manage the content.
In versions of WordPress prior to 2.9, in fact, many developers used the custom fields (custom fields) to provide customers the ability to add an image - external - to the post. Solution from the point of view that if the developer was not particularly burdensome, rendeve still editing the post quite inconvenient, especially if we consider that often it is the end customer to treat the content.

More ...


Stop SOPA