Tag: WordPress APIs
Understand Caching with WordPress Transients API
Computer performance revolves, in large part, around the idea of caching: “storing something in a more-ready and quicker-to-access state,” so that you can more quickly deliver the final result. The WordPress Transients API is a tool for caching, and an important way to improve performance in WordPress.
Why and How To Use Custom Post Types in WordPress
WordPress sites are great at holding content. Got some words and pictures you want to show the world? WordPress is a great tool for that job. Probably the best. But by default it only has two types of content: Posts and Pages. These are great, by many people have many other types of content: client testimonials, documentation of a project, past projects listings and more. Posts and Pages can be made to house these sorts of items, but there’s a better option: WordPress custom post types.
How to Make a WordPress Admin Options Page (Without Using the Settings API)
We’re going to cover creating a working WordPress options page, without using the Settings API.
Preventing Form Resubmission Warnings in WordPress with the Post/Redirect/Get Pattern
Today’s article is on an advanced topic in WordPress development, and is by a distinguished guest and a truly outstanding WordPress developer and educator: Carl Alexander.
Off the Hook: Practical Uses of remove_action() and remove_filter()
Today’s article continues our discussion of WordPress’s Hooks system with a practical look at the direct opposite of add_action() and add_filter(): remove_action() and remove_filter().
WordPress Coding Patterns: Setting Function Options with $args
Today’s topic is a pattern in WordPress programming called $args. It crops up all the time—so often that simply understanding it will make you a significantly more confident WordPress programmer. Let’s take a look!
Practical Uses of pre_get_posts
In WordPress, pre_get_posts is an action that makes it possible to modify an existing WP_Query, before that query is actually run. pre_get_posts offers some solutions that are more performant than writing a custom WP_Query, and enables solutions to other problems that would be quite difficult otherwise.
How to Add Existing Taxonomies to WordPress Custom Post Types
This article covers how to add existing taxonomies to a custom post type, and how to make that custom post type show up in those taxonomies’ archive pages.