acf-permalink icon indicating copy to clipboard operation
acf-permalink copied to clipboard

This plugin allows to use ACF fields in permalink structure.

ACF Permalinks

Plugin allows to use ACF values in permalink structure by adding %field_fieldname%, for posts, pages and custom post types. This is an extenion for the plugin Custom Fields Permalink 2.

Build Status codecov

Description

Plugin allows to use ACF values in permalink structure by adding %field_fieldname%, for posts, pages and custom post types. This is an extenion for the plugin Custom Fields Permalink 2.

Screenshot

Examples:

  • http://example.com/%field_event_date_from%/%postname%/
  • http://example.com/post-type/%field_event_date_from%/%postname%/ (with Custom Post Type Permalinks plugin)

You can also set different permalink structure depending on custom post type using Custom Post Type Permalinks plugin. You can create own post types by using Custom Post Type UI plugin.

The plugin works for:

  • posts
  • pages
  • custom post types

Plugin is also avaliable on GitHub: https://github.com/athlan/acf-permalink

Supported ACF Fields

Plugin supoorts many fields:

  • Text fields
  • Checkbox
  • Radio
  • Date Picker
  • Post Object, Page Link
  • User

Full usage samples are included in Supported ACF Fields wiki page.

Installation

  1. Search for ACF Permalinks or follow the link https://wordpress.org/plugins/acf-permalinks/

  2. Install "Custom Fields Permalink 2" plugin. https://wordpress.org/plugins/custom-fields-permalink-redux/

Of course you need to have Advanced Custom Fields plugin installed. https://wordpress.org/plugins/advanced-custom-fields/

Changelog

Release notes: https://github.com/athlan/acf-permalink/releases