You have a logical error.
You check if the field is !=
and not ==
. So if the field name is Neutral the first check will fail and it will go to the second one and it will succeed.
You ask is Neutral not equal to Neutral and the answer is false because Neutral is equal to Neutral.
The same for the other ones.
<?php if( get_field('bias') == 'Neutral' ) { ?>
<img src="https://www.streetfiresite.com/wp-content/themes/streetfiresite/img/twoarrows-nuetral.png" />
<?php } elseif ( get_field('bias') == 'Bullish' ){ ?>
<img src="https://www.streetfiresite.com/wp-content/themes/streetfiresite/img/bullish.png" />
<?php } elseif ( get_field('bias') == 'Bearish' ){ ?>
<img src="https://www.streetfiresite.com/wp-content/themes/streetfiresite/img/bearish.png" />
<?php } else { ?>
<?php } ?>
Related Posts:
- Custom field value not saving when it contains a URL?
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Seach custom post type posts only by meta fields?
- Find a way to retrive data updated through metabox plugin to web page
- Search custom post type posts only by meta fields?
- How to handle a custom form in wordpress to submit to another page?
- How to display multiple Post meta_key/meta_values by SQL query
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to make an meta_query optional?
- How to use multiple query with same meta key
- How can i create a function to get youtube video time
- How to loop over custom fields in a page template?
- Geocoding an Exploded Custom Field Array
- How can update custom meta for all posts
- Unique key for each row in a repeater field
- Removing WordPress profile fields from non-admins
- Use ajax to update_post_meta
- If Meta Checkbox is checked, do something?
- Show custom field if it exists, and show different elements if it doesn’t
- tracking number field in Woocommerce order [closed]
- How can I create a list of page titles from custom meta values?
- Sort posts by custom fields value using dropdown menu
- WordPress – Display array data of a child
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- Need Help Fixing My Iframes [closed]
- Adding number to date not working [closed]
- Saving and Restoring a Canvas on A Individual User Basis
- How to use thumbnail size of image if I’m only using src to get image
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Trouble checking if custom woocommerce checkout field is empty or not
- Sort meta-value in the sequence array in pre_get_post
- Add / Update Custom Fields After Select Pictures in Media Window
- Trying to retrieve post meta
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Custom Field IF/ELSE PHP
- Remove the last X characters of a custom field value
- Advanced Custom Fields – display label and value only if value entered
- Is it possible to retrieve all posts with a certain value for metadata?
- Grouping posts by a custom meta value
- Why are the details of my todo not saving?
- Can’t save php string to a custom field
- Run str_replace on title and save the output to a custom field
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- if custom field doesn’t exist, use post thumbnail instead, as image background
- How to store multiple custom meta box
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Handling repeater data
- How to add data to a custom field at the wp_users table?
- Define category ID using get_post_meta
- Including Custom fields within the_content
- How can i make a search box to search by custom field
- Comparing Dates from custom field
- Adding custom url to readmore link using get_permalink()
- the_meta – no get_the_meta query?
- Display movies that apear this day next
- Add “alt” Attribute to GD Star Rating Tags
- Display Custom Field in Sidebar if Value is Present
- custom header text
- Using a string from a custom field within a link
- Make separate text boxes for separate WordPress Custom Fields
- Add custom fields from different posts
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Delete images from media library when user deletes an image from ACF Gallery
- Order category posts by last word of custom field
- Display custom field value in woocommerce variable product via jQurey
- Include custom fields in search
- Set all WooCommerce Products to Simple, Virtual & Downloadable
- update_term_meta() only updating once on certain meta keys
- how can i update my postmeta without losing old data?
- Block error message in foreach loop when looping through ACF field
- Generating 3 random numbers and saving them in database
- Where does php code to load data go?
- Sum All the Post Meta of Published posts of Current Logged in user
- Get the total Author Favorited posts
- What syntax is this? “{{post.price}}”
- How to display custom field from a gallery thumbnail?
- How to use something like meta_query but for fields?
- Getting a value from a custom field from a page that shares a parent with the current page
- php if, else & custom fields – syntax error
- How to get the first letter from custom field?
- Meta box not saving spaces
- custom field meta-box with dropdown/autocomplete
- If Elseif Query
- Sorting Meta Fields?
- Display selected parts from selected pages on the frontpage?
- How to echo a different field if another field is empty?
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- PHP Puzzle: Unique Styles with PHP loop
- Display custom meta box in my template file
- Query posts by custom fields (object post)
- Too many if’s and else if’s ?? – Must be better way [closed]
- Advanced Custom Fields Show PHP in Text Areas
- WP query with variables gives no result for specific user
- How do I empty a specific meta_value for all users in PHP
- Displaying custom meta box value in a custom post page
- Convert custom field date format to “WordPress default”
- How do you create a front end form that enables the editing of member-specific custom fields in WordPress?
- How to pass value to add_filter wpcf7_form_tag from another function?
- How to execute a shortcode within a custom field?