Contribuie la traducerea WordPress-ului

Se pare că nu există niciun ghid despre cum poți contribui la traducerea în limba română a platformei WordPress așa că m-am decis să scriu unul. Mai demult, existau mai multe traduceri neoficiale, găzduite pe diferite site-uri. La ora actuală, există un loc centralizat pentru traducerile în toate limbile, și anume translate.wordpress.org. Traducerea în limba [...]

Read full post...

Conditional Script Loading Revisited

In 2010 I wrote a tutorial for loading JavaScript using the WordPress API. The main problem was how to enqueue a script only when needed; for example, when a certain shortcode was present on the page. Since WordPress 3.3, you can skip all the Yoda acrobatics; just call wp_enqueue_script() inside the shortcode handler: add_shortcode(’myshortcode’, ‘my_shortcode_handler’); [...]

Read full post...

Front-end Editor: Version 2.2

Editable groups It’s now possible to create arbitrary groups of editable elements. This opens the door for a lot of possibilities. For example, you can now edit all fields of a post at once, instead of one at a time. Go to the FEE settings page to enable it. Post creation One feature that was [...]

Read full post...

The Magic of WP_User

In previous versions of WordPress, when you called get_userdata() or get_user_by(), you got a plain stdClass object, filled with all the fields from both wp_users and wp_usermeta tables. This had two disadvantages: dashes were removed, so that ‘my-custom-field’became ‘mycustomfield’ all fields were loaded and kept in memory, wasting precious resources Since WordPress 3.3, all user-related [...]

Read full post...

Posts 2 Posts: Version 1.1

I’m pleased to announce that the Posts 2 Posts plugin now also supports posts-to-users connections. (It supports users-to-users connections as well, but there’s no UI for them): https://github.com/scribu/wp-posts-to-posts/wiki/Posts-2-Users This is made possible by a new p2p_type column on the wp_p2p table, with which we can clearly distinguish between user ids and post ids. If you’re [...]

Read full post...

The Future of Multisite

The original use case of the Multisite feature in WordPress (formerly WPMU) was wordpress.com, where users can create and manage their own blogs, independent from all the other blogs in the network. Outside of wordpress.com, this is the more common story: someone sets up a multisite installation and needs to create and manage several sites, [...]

Read full post...