Support

Account

Home Forums General Issues Use field to create URL Reply To: Use field to create URL

  • There isn’t anything in ACF that will allow you to use values of fields as part of your URL string (slugs).

    It is possible to do, but it’s complicated and beyond the scope of this forum. I can give you a basic idea of what’s involved.

    First you need to create custom rewrite rules and custom url. Once you get that working then you need to build a pre_get_posts filter and a template redirect action that will cause WP to query for the correct post and show the right template. There is a basic outline of this here https://premium.wpmudev.org/blog/building-customized-urls-wordpress/