Home › Forums › ACF PRO › Creating a Single Pages/Posts from Repeater Field Rows › Reply To: Creating a Single Pages/Posts from Repeater Field Rows
I would use get_permalink()
for the current page url if it is a “post” https://developer.wordpress.org/reference/functions/get_permalink/ it’s generally better to use WP functions for this.
The url safe name is something that you’re going to need to work out. It could be as simple as
$slug = url_encode($product_name);
or anything that renders the name in a way that works as a url value.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.