Home › Forums › General Issues › How to clean up URL's for consistent output – from textfield › Reply To: How to clean up URL's for consistent output – from textfield
Better use a URL field type that gets validated upon post publish or update so the users get an error message if the URL is not in the correct format without http:// or https:// . It’s better practice not to hardcode the http:// in your template because users usually copy links from the browsers’ address bar and http:// always gets copied and that will brake the links.
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.