Plugin allows to use ACF values in permalink structure by adding %field_fieldname%, for posts, pages and custom post types.
Plugin allows to use post’s ACF values in permalink structure by adding %field_fieldname%
rewrite tag.
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:
Supported ACF Fields
Plugin supoorts many fields:
Full usage samples are included in Supported ACF Fields wiki page.
Plugin is also available on GitHub:
https://github.com/athlan/acf-permalink
Install plugin in WordPress system in Plugins section. You can search for “ACF Permalinks”.
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/
Plugin supoorts many fields:
Full usage samples are included in Supported ACF Fields wiki page.
The best way is to raise the ticket under the GitHub repository:
https://github.com/athlan/acf-permalink/issues/new
We would be very grateful in any contribution. If you have a idea for the feature, please discuss it first by
raising the ticket.
When the assumptions are ready, please
make a pull request at GitHub.
In case of missing custom post field values you can generate them on-the-fly using generate_dynamic_metadata
filter.
Read the example.
You can generate custom post fields dynamically coding some logic using generate_dynamic_metadata
filter.
Read the example.
Release notes: https://github.com/athlan/acf-permalink/releases