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?
- auto-populating custom nav with all items from custom post type
- Sort meta-value in the sequence array in pre_get_post
- Add / Update Custom Fields After Select Pictures in Media Window
- conditional logic for front-end custom field edits
- Trying to retrieve post meta
- Automatic Shortcode Creation with Custom Fields [closed]
- Custom field values to taxonomy terms
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Custom Field IF/ELSE PHP
- Which PHP page is the Default Posts Page
- How to combine 2 php functions into one function with a custom field
- 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
- Saving zero in meta box
- Non-Closing PHP Query in WordPress Loop
- Why are the details of my todo not saving?
- How to check if a PHP string is different than meta field?
- Can’t save php string to a custom field
- Display custom field on 404 page outside loop
- Why does this update_post_meta function not delete the custom field itself?
- How to show/hide php table rows based on the content of custom fields
- Run str_replace on title and save the output to a custom field
- How to use array in function to get only value I want
- Only show image from custom field when present
- how to get serialized post meta
- Hide Heading if ACF Field is empty
- Custom meta box values are not getting saved for my custom post type
- How to update and save user metadata on page visits?
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- WP_Query: getting posts where custom field exists
- How to show meta value code HTML after x paragraph
- How to get specific attribute from DB
- Creating an image from a custom field
- User Meta Value not echoing despite Var_Dump Showing correct string
- WordPress loop by meta key that is an array? and how loop multiple arrays
- if custom field doesn’t exist, use post thumbnail instead, as image background
- WP All Import / Update stock quantity from multiple XML files
- 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?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Concatenate Custom Field Value & HTML Value
- Output custom text field as unordered list
- Conditional featured image with youtube thumbnail
- `update_post_meta` not working anymore
- Order a WP_Query by meta value where the value is an array
- Unable to render custom field after attempt to generate a list of recent post in page template
- Add a custom class to the body tag using custom fields
- Define category ID using get_post_meta
- Add a counter for mouseovers (custom field)
- Hide a div when a custom field is empty
- Including Custom fields within the_content
- How can i make a search box to search by custom field
- Comparing Dates from custom field
- Conditional On custom field plugin metabox
- Show field if it has contents on Advanced Custom Fields
- Adding custom url to readmore link using get_permalink()
- Filter unique custom field value based on custom taxonomy category or other custom field
- the_meta – no get_the_meta query?
- Display movies that apear this day next
- Add “alt” Attribute to GD Star Rating Tags
- Display background color or image with custom meta box?
- Display Custom Field in Sidebar if Value is Present
- custom header text
- Using a string from a custom field within a link
- Meta boxes only displayed when editing normal (default wp post_type) posts
- WordPress stripping out custom field tags
- Can ‘Custom Field’ data be inserted into this Short Code?
- Using an “IF” statement based on the existence of custom field
- Query pulling a single post per month
- Make separate text boxes for separate WordPress Custom Fields
- Add custom fields from different posts
- Display additional user fields
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Delete images from media library when user deletes an image from ACF Gallery
- Updating Metadata with Shortcode
- Adding a custom meta field with default NULL value which is not selectable
- How do you save the values from custom fields to a products data
- Order category posts by last word of custom field
- How can I add diffrent editable text fields?
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- 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
- Products listing check if meta checkbox is checked
- Trying to update Woocommerce meta values
- how can i update my postmeta without losing old data?
- Is it possible to update the dataset using update_post_meta
- How to update custom fields when post is published?