Capturing arbitrary semantic URL arguments

The thing in WP that hits a passable balance of such functionality to not so painful implementation is rewrite endpoint.

They are structured a little differently from your example (i.e. /tab/2) but they are easy to implement and order of magnitude less painful than dealing with Rewrite API usually is.

Leave a Comment