if ( get_field( "models-ad_fly" ) ):
echo '<div class="icon_plane"><i class="icon-social_fly"></i></div>';
endif;
or if you want to assign the output to a variable
if ( get_field( "models-ad_fly" ) ):
$output .= '<div class="icon_plane"><i class="icon-social_fly"></i></div>';
endif;
Related Posts:
- Fatal error: Call to undefined function mysql_connect()
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Childs PHP files not overwriting Parent’s PHP files
- How to check if feed URL was requested?
- How to add active class to custom menu using while loop and wp_list_pages
- How can I run a .php file located in my site’s root folder?
- How to return a string that has a variable inside in a shortcode?
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Saving metabox repeatable fields
- Get list of WP Updates Across Sites
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- Woocommerce HTML email option unavailable
- Use template for posts with a particular category grandparent
- How to start a script from cli within wordpress
- How to group 2 radio buttons in a widget?
- What’s the best user registration library to integrate WordPress?
- Missing sidebar parameter “fix” – before_content
- Page Automatically Generated from Theme?
- Adding Custom Slider
- Displaying custom taxonomy on WooCommerce product page
- Don’t insert if permalink is the same?
- PHP errors in class-wp-query
- Store a default value for a transient on plugin activation
- Custom posts in different columns style
- Insert custom PHP head above in WP pages
- Can we count the WordPress Loop
- Display most popular posts of category
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Warning message (re. php) on the blog page
- Fixing Memory Leaks in WordPress (HHVM)
- Get html data with javascript to php array and store to wordpress database
- How to use array in function to get only value I want
- Apply class to every third list item? [duplicate]
- How to include custom code on a page that’s set to act as homepage?
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to upload WP user avatar on woocommerce account page [closed]
- add_filter function concatenate string and locate_template function
- HTTP ERROR 500 after installing child-theme [WordPress] [closed]
- get users search not working with array
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How to get a list of users who like a current wordpress post [closed]
- ‘pre_user_query’ interfering with user export
- Custom CSV exporter – Cannot modify header information – headers
- Custom post type url Rewrite (conflicting with page url)
- WordPress custom taxonomy
- pagination broken – clicking next displays “page not found”
- PHP: How to access db the right way in plugin?
- How to decrease the max file upload size without using php.ini or htaccess?
- populate select options from extra mysql table data
- Custom forms with HTML
- How to check post meta isset or not empty during publish/save post?
- Nav Walker that shows only children and siblings of top level parent menu item
- Add posts to custom table in database instead of wp_posts
- Woocommerce. Get a list of products in the current category on the archive page and product page
- WordPress – Query specific category and automatically change category each month
- What are the advantages/disadvantages of ways to use php template files?
- remove_action from parent theme using child theme functions.php
- I can’t separate the array by commas
- Hide Approved status for certain users in users list
- is_user_logged_in returns false when I access certain pages
- How to add locations input to user profile?
- Get original value in save_post action hooka
- Warning: urlencode() expects parameter 1 to be string, array given in /wp-includes/formatting.php on line 5343
- Constant expression contains invalid operations plugin class properties visibility
- Possible to edit custom date field and display?
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- Adding a LISTING of PHP code in a page/post [closed]
- Static Page with php echo [duplicate]
- Show different button text if no content
- Displaying Children of several pages
- How do I fetch a data from an external database into my wordpress homepage
- Error when saving wordpress
- Position a repeated article blocks
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- Only display notification on single post
- Add a downloaded JS file to WordPress
- Add options to WordPress backend
- Querying latitude and longitude into google maps correctly
- apply_filters() function
- How to define Og Meta Tags in header using conditions [duplicate]
- Changed URl in General Settings now WordPress site doesnt work
- Using tag to output text in Genesis?
- images in wordpress themes
- WordPress redirect on login
- How do you get a reference to $wpdb in a PHP script
- How do I return an image from a script
- Custom Registration and Login Forms with reCaptcha 2 Validation
- Change Checkout “Place Order” text if cart has a specific product
- php inside HTML via shortcode? [closed]
- display php code in header using wp_head()
- How can I get is_page(Current_URL)?
- Sorting Problem
- “Missing header/body separator” error with wp_remote_post()
- I updated my version of php and got error
- WordPress move current to top in the loop
- How to change product SKU’s in bulk with a plugin
- BrowserSync not detecting PHP files in WordPress + Laravel Mix
- Function for Post Creation plugin for Gravity Forms
- success Message not Displaying
- child category under correct parent