From ACF Documentation:
/*
* Conditional Statement
*/
if( get_field('field_name') )
{
echo "do something";
}
else
{
echo "do something else";
}
So…to check if something is “NOT” checked is just the else
of the above.
Related Posts:
- ACF field not appearing correctly in loop
- ACF Repeater loops and resets – where is the reset_rows() documentation? [closed]
- Endless loop with wp_insert_post and wp_update_post
- Add Incrementing ID to each paragraph in the_content
- List events by month
- Remove comma from last item output from loop
- post__in – Placing content from a foreach loop inside of an array
- In a foreach loop, how do I target the last item in the loop?
- How to iterate through database until it find a match
- the_content() seems to block my ACF-code
- Advanced Custom Fields: Post Object – Not returning data [closed]
- How can I add multiple ‘tax_query’ arrays via a loop?
- ACF page while loop breaks footer while loop
- Using Advanced Custom Fields to create a per page slider
- One custom loop with condition to check child posts
- How do I go about looping through a advanced custom field on a particular page inside of another page
- Using an ACF field from a page within a post loop?
- Get all posts including sticky ones with get_posts(),setup_postdata(), and foreach loop?
- How to print out menu names in the foreach loop?
- Stuck in the query loop
- ACF custom field in [closed]
- Advanced Custom Fields – display label and value only if value entered
- Add class to last 3 posts in loop
- Distribute Gallery Images Every nth in Loop
- Conditional: IF current user has NOT commented on current post (not including post author)
- ACF – add a group inside a repeater [closed]
- Output meta into arrays
- While loop with bootstrap [closed]
- Need to add class to first element in a foreach loop
- Foreach displays from last to first
- How to create a multidimensional array with multiple loops
- Simple foreach loop help needed in wordpress “the loop”
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Loop through ACF taxonomies and output associated posts
- How to print redux gallery feilds id? [closed]
- Blank content php code not parsing advanced custom fields gallery add-on [closed]
- How to check all items in a loop have post thumbnail?
- Fetch data from two custom post types and create multidimensional array for output to html table
- ACF: display custom filed of CPT into the loop
- Use ACF Category Image for all Taxonomy Archive Views
- Need to while loop and display contents in the subfield of a group field given by ACF
- ACF – Get ID of relationship field in flexible content
- Add Search and Filter functionality to custom loop
- How to output values from a loop into a javascript array
- ACF background-color per post in a WordPress loop
- PHP for loop not working as intended
- Display related post content and custom field content
- Get featured image outside the loop using foreach
- Why loop renders only last metabox from array? [closed]
- Issue in If else condition [closed]
- Foundation modal in wordpress php loop
- ACF loop and php formatting
- Can’t see custom field after the Loop [closed]
- the_post_thumbnail unless video id is added
- Custom Meta Box If Else Statement
- Eliminate duplicates in a foreach loop [closed]
- While loop inside another while loop
- Wrap every 2 divs in row – for each loop [closed]
- Retrieve each widget separately from a sidebar
- Where should I use post_class()?
- Woocommerce, recognize the loop of related products
- Can an array be used as a meta_query value?
- Fix inefficient loop breaks post.php on form submit
- Output 2 items within the Loop
- Filtering The Loop For Single Page and Blog Page
- Pulling current post/page data into header.php
- Loop and Page template : my WP_query don’t take args
- How can I add pagination and how can I change thumbnail size?
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- Display post category in foreach loop with category link
- Get single post from tags array
- Apply an Incremental Counter in an Array Function
- List authors with the last post title and order by last post date
- PHP Warning: strip_tags() expects parameter 1 to be string?
- Loop counter style
- Can I add generic numbering HTML classes to items as a loop runs?
- Custom Post Type on Homepage – Studiopress Genesis Framework
- New loop vs widget
- Yoast taking over my WordPress title tag [closed]
- Pagination broken after using 2 loops to show content
- Only show first image in foreach loop
- Loop to display ONLY custom taxonomy parent information [closed]
- Wpdb get->results to out the the month from the db
- Exclude page from loop results
- How is WordPress changing the content markup?
- Custom Blog Loop on Home Page
- Updating Post meta (ACF field) from Feed
- How to add pagination in Terms
- Use WPQuery to match to specific repeater row in post
- Advance custom fields variable with if statement & Function
- A code that I could not fully grasp related to foreach & count_user_posts()
- Two loops in one function
- WordPress Multiple Loop: Home/Archives Page, with pagination
- Placing the content of one post in two side by side columns, newspaper style
- Pass WP post content to a jQuery plugin (Fancybox)
- Query Custom Post Type by Tag
- Showposts doesn’t show the number of posts indicated
- For each loop will not append to the_content hook
- How can you make it so the comment box shows on some pages or posts but not all?