URL Rewrites & Custom Rewrites

When you need to change the URL structure or Rewrite Rules beyond what is provided in the Advanced Options Tab for the Custom Post or Custom Taxonomy.

By default WP presents post-type URL’s like <post-type>/<post-slug>. We use the built-in and custom handling provided by register_post and register_taxonomy so anything beyond that is out of scope for Pods and requires you to look into custom solutions, though you can adjust your rewrite slugs in the Advanced Options of your Custom Post Type and Taxonomy.

We can recommend Custom Post Type Permalinks for expanding on what is available in the Settings, Permalinks screen for your Custom Taxonomies and Custom Post Types.

You might need to define custom rewrite tags in this case, which is well documented at WordPress.org for add_rewrite_tag. It’s also possible that the plugin won’t be enough and you’ll have to define a custom post type rewrite with add_rewrite_rule. You will find wordpress.stackexchange.com a good resource for handling custom rewrite rules.

Other Helpful Documentation on Advanced Topics

Compare Functionality in Pods 1.x to Pods 2.x

In Pods 2.0, we’ve simplified and cleaned up confusing names of functions and methods. Below is a comparison in case you’re familiar with Pods 1.x functionality. This will help you quickly migrate from any Pods 1.x site to Pods 2.x. Note: Pods 2.x is backwards compatible with Pods 1.x code in most cases, but we still …

Read more

REST API

ContentsOverviewQuick StartWordPress REST APICustom Fields, The REST API, Pods & YouExtending WordPress Default ObjectsHow It WorksPods Advanced Content Types, Custom Queries & More Overview Pods can be used to extend default WordPress REST API endpoints for any post types and taxonomies as well as the user routes. This functionality, which is managed from the Pods editor can be …

Read more

Roles & Capabilities in WordPress

Working with WordPress Roles & Capabilities for managing User Accounts and their access.

Using Link Tables for multi-field relationships

We get a lot of questions about relationships with multiple fields. These extra fields give the relationship more context, like a date for example. In such a case you’ll need a so-called “Link Table” to combine this into one relationship. This can be an extra Pod, table based or meta based. ContentsSetup:Use cases:1: Recipe ingredients …

Read more