Techniques (WP) articles

Responsive Images In WordPress With Art Direction




 


 

Support for responsive images was added to WordPress core in version 4.4 to address the use case for viewport-based image selection, where the browser requests the image size that best fits the layout for its particular viewport.

Responsive Images In WordPress With Art Direction

Images that are inserted within the text of a post automatically get the responsive treatment, while images that are handled by the theme or plugins — like featured images and image galleries — can be coded by developers using the new responsive image functions and filters. With a few additions, WordPress websites can accommodate another responsive image use case known as art direction. Art direction gives us the ability to design with images whose crop or composition changes at certain breakpoints.

The post Responsive Images In WordPress With Art Direction appeared first on Smashing Magazine.

The Aesthetic Of Non-Opinionated Content Management: A Beginner’s Guide To ProcessWire


  

Systems for managing content are more often than not rather opinionated. For example, most of them expect a certain rigid content structure for inputting data and then have a specific engraved way of accessing and outputting that data, whether or not it makes sense. Additionally, they rarely offer effective tools to break out of the predefined trails if a case requires it.

The Aesthetic Of Non-Opinionated Content Management: A Beginner’s Guide To ProcessWire

ProcessWire is a content management system (CMS) distributed under the Mozilla Public License version 2.0 (MPL) and MIT License. It is designed from the ground up to tackle the issues caused by exactly this kind of opinionatedness (which, inevitably, results in frustrated developers and users) by being — you guessed it — non-opinionated. At its heart, it is based on a few simple core concepts and offers an exceptionally easy-to-use and powerful API to handle content of any kind. Let’s get right into it!

The post The Aesthetic Of Non-Opinionated Content Management: A Beginner’s Guide To ProcessWire appeared first on Smashing Magazine.

Building An Advanced WordPress Search With WP_Query


  

Many WordPress superpowers come from its flexible data architecture that allows developers to widely customize their installations with custom post types, taxonomies and fields. However, when it comes down to its search, WordPress provides us with only one-field form that often appears inadequate and leads site admins to adopt external search systems, like Google Custom Search, or third-party plugins.

Building An Advanced Search System in WordPress with WP_Query

In this article I’ll show you how to provide your WordPress installation with an advanced search system allowing the user to search and retrieve content from a specific custom post type, filtering results by custom taxonomy terms and multiple custom field values.

The post Building An Advanced WordPress Search With WP_Query appeared first on Smashing Magazine.

Making A WordPress Plugin That Uses Service APIs, “From Soup To Nuts”


  

An increasingly large number of publicly available APIs provide powerful services to expand the functionality of our applications. WordPress is an incredibly dynamic and flexible CMS that powers everything from small personal blogs to major e-commerce websites and everything in between. Part of what makes WordPress so versatile is its powerful plugin system, which makes it incredibly easy to add functionality.

Making A WordPress Plugin That Uses Service APIs, “From Soup To Nuts”

We will walk through how I made GitHub Pipeline, a plugin that allows you to display data from the GitHub API on WordPress pages using shortcodes. I’ll give specific examples and code snippets, but consider the technique described here a blueprint for how to consume any service API with a plugin. We’ll start from the beginning, but a degree of familiarity with WordPress and plugin development is assumed, and we won’t spend time on beginner topics, like installing WordPress or Composer.

The post Making A WordPress Plugin That Uses Service APIs, “From Soup To Nuts” appeared first on Smashing Magazine.

A Beginner’s Guide To Creating A WordPress Website


  

Earlier this year WordPress passed the 24% mark, running almost a quarter of all website – and for good reason. It has a loyal user base and scores of dedicated developers bringing better features to the system all year round.

A Beginner's Guide To Creating A WordPress Website

This article is for those of you who are either new to WordPress, or are regular users who want to learn about the best way to run a WordPress website. We’ll be learning about domains, WordPress installation, managing content and using great plugins and themes to secure our site and make our content shine.

The post A Beginner’s Guide To Creating A WordPress Website appeared first on Smashing Magazine.

How To Create And Customize A WordPress Child Theme


  

The WordPress platform is a magnet for those who want to take matters into their own hands, who want complete control over their websites and want to be independent in running them. WordPress does make it really easily to completely customize a website. If you have a bit of knowledge of HTMl, CSS and/or PHP, there is nothing you can’t change.

How To Create And Customize A WordPress Child Theme

I mean, just compare the default themes, Twenty Fifteen and Twenty Fourteen. Hard to believe they are running on the same platform, isn’t it? Therefore, it is only natural for you to want to adapt the look of your website to fit your vision. I doubt there are many WordPress users out there who don’t constantly think about what to implement next. However, a problem arises.

The post How To Create And Customize A WordPress Child Theme appeared first on Smashing Magazine.

Useful Tips To Get Started With WordPress Hooks


  

Even though hooks in WordPress are amazing and everyone uses them knowingly or unknowingly, I get the impression that some advanced users and especially front-end developers still seem to avoid them. If you feel like you’ve been holding back on hooks, too, then this article will get you started. I am also going to reveal some interesting details to anyone who thinks they are familiar enough with hooks.

Hooks in WordPress

You’ll want to read this article especially if you’d like to: understand code snippets with hooks such as those found in forums, extend WordPress, plugins and themes without breaking updates, learn how to avoid common problems, allow others to extend your code.

The post Useful Tips To Get Started With WordPress Hooks appeared first on Smashing Magazine.

Useful Tips To Get Started With WordPress Hooks


  

Even though hooks in WordPress are amazing and everyone uses them knowingly or unknowingly, I get the impression that some advanced users and especially front-end developers still seem to avoid them. If you feel like you’ve been holding back on hooks, too, then this article will get you started. I am also going to reveal some interesting details to anyone who thinks they are familiar enough with hooks.

Hooks in WordPress

You’ll want to read this article especially if you’d like to: understand code snippets with hooks such as those found in forums, extend WordPress, plugins and themes without breaking updates, learn how to avoid common problems, allow others to extend your code.

The post Useful Tips To Get Started With WordPress Hooks appeared first on Smashing Magazine.

Top