Home › Forums › General Issues › How to add field value to permalink? › Reply To: How to add field value to permalink?
You cannot make permalinks like this and mix “/“, “–” without heavy PHP magic.
/grade-11/english to /grade-11/english-eng3u. Your field value (all of them) would need to have this sign “-“.
You dont have so many language courses ? Even theoretically it they are in hundreds WordPress now manages Terms well. As long you dont use to many Select (dropdown) options Terms on shared hosting.
Do it like this:
– “grade 11” = (you use WooCommerce) Products main Category/Taxonomy/Term.
– “english” = subcategory/Term of “grade11” main category.
– “eng3u” = sub category/Term of “english” subcategory.
Just simple nested categories and Terms. This is very reusable everywhere in WordPress for future website building, not like using fields. And Permalinks are generated naturally, no tweaks needed.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.