Theme related news
First of all, a new default theme is being introduced: Twenty Fifteen. It is designed beautifully and fits well with the whole direction of WordPress internationalization. It uses Google’s Noto Serif and Sans fonts which support many languages, so that there is no need to adjust fonts for your language (a well-known problem for users who publish in languages with non-latin alphabets). From a features point of view the theme has options such as custom header and custom background, ability to set color schemes, and built-in support for popular social buttons. You need only create a menu in the native WordPress interface to have these icons appear on your site. Theme developers will find interesting new tools in 4.1: The Custom Customizer Controls API allows you to register and render your own controls in Customizer sections for better theme option management. Now you can use JS templates to render custom controls on the client without any server-side calls. The whole logic of the API is covered in this make.wordpress.org post. Besides that, new template tags have been introduced to make working with navigation easier in templates. Many themes include support for plugins such as WP-Page-Navi to simplify the creation of paging, because native functions like paginate_links are sometimes tricky to use. You don’t need to do that anymore, there are new template tags in WP 4.1 to address the issue:- thepostnavigation - should be used in the single post template to create next and previous post links;
- thepostsnavigation - should be used in archive templates to create links to next and previous archive pages;
- the_pagination - numbered paging links for archives, the implementation of which can be seen in the Twenty Fifteen theme.
Dashboard features
There were various improvements to language pack support in recent releases. In 4.1 this trend goes further and users now can download appropriate language packs from wordpress.org directly when changing them on the Settings screen. The only possible issue in the process is the correct writing permissions. Another new feature already has the reputation for being the most controversial thing in the release. It’s the so-called Focus mode that aims to improve beginner experience with a distraction free mode. Not so many users know about this mode and those who do often don’t find it useful. In Focus the user is going to be put in a destruction free environment during the regular post-editing process. https://www.youtube.com/watch?v=-qLnq4ZvI4I Focus could be switched off in settings and there’s already a lot of discussion as to whether it should be turned on by default. WordPress beginners often find it difficult to align images in the WordPress post editor. Since 4.1 users will have a floating panel in Visual mode to make things more intuitive. Login sessions were implemented in 4.0 and they are going to have management UI in settings. Users can review what sessions they have on different devices and log out if necessary.For developers
Developers may welcome the improvements for _Query classes that allow nested queries to be built based on taxonomy, metadata and date. For example, let’s suppose that you have posts with ‘city’ and ‘state’ metadata, and you want to fetch all items that match either city=Miami&state=Ohio or city=Augusta&state=Maine. The syntax should look like this:$query = new WPQuery( array( 'metaquery' => array( 'relation' => 'OR', array( 'relation' => 'AND', array( 'key' => 'city', 'value' => 'Miami', ), array( 'key' => 'state', 'value' => 'Ohio', ), ), array( 'relation' => 'AND', array( 'key' => 'city', 'value' => 'Augusta', ), array( 'key' => 'state', 'value' => 'Maine', ), ), ), ) );The same functionality exists for the taxonomy query and date query with additional bug fixes, a complete record of which can be seen here. The second ‘big’ and widely discussed change is the introduction of shared terms — which means that you can have two terms with the same name and slug belonging to different taxonomies. It aims to handle the case when changes in one set of shared terms don’t affect other terms. Term splitting is still in beta versions but may be removed from the final release in the case of negative feedback. So theme and plugin developers are heavily encouraged to test their products thoroughly. The Kubric theme set the practice of outputting the content of <title> tag with the addition of some custom code. Because there is no consistency in such an approach it leads to problems for users when they would like to use SEO plugins or have complex structure in their titles. Now things are going to change with the introduction of the ‘theme support’ approach to output the <title> tag. Starting with 4.1 the recommended way for themes to display titles is as follows:
function themeslugsetup() { addthemesupport( 'title-tag' ); } addaction( 'aftersetuptheme', 'themeslug_setup' );By declaring support like this, themes acknowledge that they are not defining titles on their own and WordPress (or a plugin) can add it safely without duplication. More details on backward compatibility can be found here. In addition to all these great things the recent beta contains all security fixes that were introduced in the 4.0.1 upgrade.
Anna Ladoshkina
Anna Ladoshkina is a freelance web designer and developer who likes to build pretty things with WordPress and write about it. Connect with Anna on Twitter (@foralien) or on her website, www.foralien.com.
Read Next
3 Essential Design Trends, November 2024
Touchable texture, distinct grids, and two-column designs are some of the most trending website design elements of…
20 Best New Websites, October 2024
Something we’re seeing more and more of is the ‘customizable’ site. Most often, this means a button to swap between…
Exciting New Tools for Designers, October 2024
We’ve got goodies for designers, developers, SEO-ers, content managers, and those of you who wear multiple hats. And,…
15 Best New Fonts, September 2024
Welcome to our roundup of the best new fonts we’ve found on the web in the previous four weeks. In this month’s edition…
By Simon Sterne
3 Essential Design Trends, October 2024
This article is brought to you by Constantino, a renowned company offering premium and affordable website design
You…
A Beginner’s Guide to Using BlueSky for Business Success
In today’s fast-paced digital world, businesses are always on the lookout for new ways to connect with their audience.…
By Louise North
The Importance of Title Tags: Tips and Tricks to Optimize for SEO
When it comes to on-page SEO, there’s one element that plays a pivotal role in both search engine rankings and user…
By Simon Sterne
20 Best New Websites, September 2024
We have a mixed bag for you with both minimalist and maximalist designs, and single pagers alongside much bigger, but…
Exciting New Tools for Designers, September 2024
This time around we are aiming to simplify life, with some light and fast analytics, an all-in-one productivity…
3 Essential Design Trends, September 2024
September's web design trends have a fun, fall feeling ... and we love it. See what's trending in website design this…
Crafting Personalized Experiences with AI
Picture this: You open Netflix, and it’s like the platform just knows what you’re in the mood for. Or maybe you’re…
By Simon Sterne
15 Best New Fonts, August 2024
Welcome to August’s roundup of the best fonts we’ve found over the last few weeks. 2024’s trend for flowing curves and…
By Ben Moss