Home › Forums › Front-end Issues › Showing custom post type field on front-end with conditional logic › Reply To: Showing custom post type field on front-end with conditional logic
Conditional logic is only used in the admin when editing and has not effect on what is shown on the front end. You must code the front end to use it.
example:
if (get_field('true_false_field_name')) {
// show the conditional field
}
This is not something you’re going to be able to do in elementor without creating custom code. More than likely you will need to code a custom shortcode and then use that shortcode in elementor.
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.