Jonathan Daggerhart: WordPress Rewrites API

  1. daggerhart

    Though there aren’t slides for this presentation, there is an accompanying blog post that goes through each of the shown examples. —


Continue the discussion

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


August 19, 2016

Rewrite rules are how WordPress creates clean/pretty URIs from URL query parameters. When your new page or blog post automatically gets a human-friendly URL, this is provided by a rewrite rule, which itself is using WordPress’s Rewrite API. In this presentation Jonathan Daggerhart will go over the basics of the Rewrite API, create a few new rewrite rules as examples, and make use of the data the Rewrite API provides the global WP_Query object when it matches a rule’s pattern. Hopefully by the end of the class, you’ll have a good understanding of what the Rewrite API is, how it works, and some use-cases where it could be beneficial.

Rate this:


WordCamp Asheville 2016 46


Jonathan Daggerhart 4


Rewrites API 1


English 6219

MP4: Low, Med, High
OGG: Low
Subtitle this video →
%d bloggers like this: