WordPress 4.4 “Clifford”: 10 Coolest New Features You Should Know
Courtesy of Hongkiat.com
In this post we will be looking at 10 new WordPress 4.4 features you should be checking out.
1. Embed Posts Anywhere
For years, you can embed content on your website, like a YouTube video or a tweet via the use of a feature called oEmbed. Well, the good news is WordPress has adopted this feature in 4.4 and you can now easily embed content anywhere on your site just by grabbing the URL of a post and pasting it into the content editor. A preview of the post that you embed will appear on your page, something like this:
If for some reason, you feel that you don’t want to use this feature, then you can disable it by installing the disable embeds plugin.
2. Work With Responsive images
As devices and their screens grow larger, designers must work with larger images as well. The bad news is that this contributes to slower page loading times. So it’s probably good timing that WordPress now supports responsive images on your theme.
In this update WordPress has added two more atributes to your images on top of class attributes for alignment (left, center or right): srcset and sizes. These attributes allow the images on post thumbnails, photo galleries and other images to be delivered in the proper size based on the viewport.
3. New Theme: Twenty Sixteen
Twenty Sixteen is a brand new default theme for WordPress 4.4. It is designed to take on the traditional blogging format.
Twenty Sixteen works perfecty for blogs or websites, featuring optional sidebars, custom color options with beautiful default color schemes, harmonious fluid grid, overflow displaying large images, ability to add intro to post using custom excerpt, and other polished features.
4. Introduction to the REST API
WordPress 4.4 brings the REST API infrastructure into the Core. This API handles the routing, argument handling, JSON serialisation, status codes, as well as functions to create custom REST API endpoints. This is fantastic news for developers. With this infrastrucure developers are finally able to build their own APIs for their themes, plugins, even mobile or desktop apps.
Head over to this page, Adding Custom Endpoints, to learn how to register a custom API endpoint.
5. Custom Term Taxonomy Meta
In previous versions of WordPress we can add custom field to the post and pages through the term meta. Now WordPress has added this feature to taxonomy objects.
For example on the Category taxonomy we might want to add a custom field, namely
category image to feature the post’s featured image on each category. In this version we can do this by making use of the following functions:
6. Single Post Template File
In this version, WordPress included a new template file on theme hierarchy to be used as a single post or custom post type. This feature is useful when you are targeting a specific post, to give ‘special’ styles to that page so it will look different from other pages. You will have a template file with a name like below:
For example, here I have a custom post type named
book that I want to spruce up for a “bestseller book” post. So I creat
single-book-bestseller.php then tweak the style to be applied to this page only. Lastly, I change the post slug to
yoursite.com/book/bestseller to apply the special page.
7. Improved Comments
WordPress has made rearrangements on the comment form, where the comment field is displayed first, then the name and email fields below. This improvement was the answer to the issue that the comment behaviour is different for logged in and logged out user.
On the backend, the comment now is represented by the
WP_Comment object. This enables you to output comments in a more object-oriented (OOP) way with more powerful comment queries.
8. Heading Hierarchy
WordPress is improving heading hierarchy on the dashboard screen with the aim to assist users with assistive technologies such as screen readers. This is important because the assistive technologies use these headings to find information and the keyboard to navigate to relevant content.
Suppose they use the 1 key to jump to the first
h1 then press 2 to jump to
h2. With the correct heading hierarchy there will be no heading levels missed.
With this revamp, a page such as
wp-admin/edit.php will now have Posts as
h1 , and “Filter posts list” and “Posts list” as
h2, which are visually hidden with the
.screen-reader-text CSS class.
9. Multisite: Adding WP_Network
WordPress introduced a new object
WP_Network to make it easy to interact in a multisite network. This class is used during loading to populate the
$current_site global variable and setup the current network .
There are other new functions coming to version 4.4 to populate network options; they are
10. Faster Customizer Load Time
Article courtesy of Hongkiat.com