You most probably ran into problems with escaping code and HTML from each other.
Try this (added line breaks just for better readability):
<i class="
<?php
echo (get_post_meta(get_the_ID(), 'Preis', true) != '') ?
'fa fa-check' : 'fa fa-times';
?>
">
Related Posts:
- How to hide home title on pages and posts?
- How can I add dropdown widget/box to admin post page?
- Include images from pages in wp search.php results in default wp search
- List events by month
- Limit Authors to their Own Posts on front-end excluding admins
- How to append element after thumbnail
- I am having a problem with form updating/editing WordPress post on the frontend
- WP_Query is printing out only one post when posts_per_page is set to multiple
- GravityForm: Populate Dropdown with custom post type [closed]
- Blog page showing same content as homepage
- Can’t get order_by meta_value_num to work properly
- Accessing post’s meta data based on user’s click of a post
- Replace text in post from cvs
- I would like to have different styles for my posts based on the content of each post
- Make a custom_post translatable
- Redirect to another page using contact form 7? [closed]
- How to delete all trashed item in one-go
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Pagination hitting 404 page on /page/4
- Filter content in shortcode
- Modify Posts from Custom_Post_Type within the plugin
- How to add new post using a form to categories when categories are using as menu
- How to set the mainpage of a custom post type?
- Different post title, keywords and description
- Validate Custom Post Type fields
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Accessing a protected property of a post
- redirect after submiting post for review
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Is it possible to get the specific content on the search page?
- Why is my custom post content only viewable when signed into WordPress?
- How to change Elementor Template for Single Page Post on Load
- open custom post type in popup window instead of page
- WordPress hide post from custom post-type on a single page
- WordPress – display relationship between blog posts and custom posts
- wp_post_delete is deleting all offices
- Accessing download link from the loop with WP Download Manager Pro
- Set a template on a custom post in the plugin
- Filter Custom Post Type Posts by Taxonomy
- Add input radio menu to post
- News post with multiple permalinks? When opened from different page
- Custom Post By Category
- How to get the posts that my following users are liked?
- Include images from pages in wp search.php results in default wp search
- Post that populates itself (almost) automatically using data from imported excel file
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- WP_Query return highest number only
- Show custom taxonomy not in submenu
- Featured image in custom post is being disabled
- Loop carousel slider in wordpress
- How to Fix WordPress 500 Internal server error due to custom post type
- Why isn’t my custom post type using the corresponding custom post template?
- How to delete unnecessary custom post types in the UI
- How do I call the custom Post Type name and permanent link to my php file?
- How do I ensure that post_type and Taxonomy use the same slug?
- Front end create custom post types
- Custom post type page with parameter
- How to create repeater field manually, without plugin (ACF Pro)?
- Group episodes by seasons
- Is it a connection or relationship between 2 custom post types?
- Custom Posttype URL
- pagination for custom post type archive page
- Display custom post front end filter by ACF equals current user
- How to get post count of specific taxonomy that have store name & category
- Fetch data from two custom post types and create multidimensional array for output to html table
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Adding /blog in front of single posts (only)
- Admin slow on Postlist (over 30k Posts in Database)
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- Page that lists publications by classifying them by taxonomy
- Display All Courses in Course Archive Page
- How to display “Trash” in my custom post type?
- CPT loop doesn’t seem to account for post date?
- Is it possible to pin a post in second position from top
- Display all Categories except ones with a specific parent
- How to achieve a multi-taxomony layout with posts?
- Settings -> Reading -> Posts Page ->Blog — is not working in my website
- Invalid content when I try to import custom post type from the old template wordpress
- Custom fields array to display it monthly
- Custom front-end form for adding post – Category problem
- How to show the post which checkbox is not selected
- How to get the custom field value using SQL query
- How to get the custom post data using post id in WordPress?
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- set object terms after some some time of published post – functions.php
- See if the email exists or not
- php dynamic content inside shortcode
- count & sum the value of custom field of the author post in dynamic posts
- i need to have a tab with gategory post
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Custom Post type to Woocommerce Product type
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- Get only parent post in archive post
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- Best way to fix bad count on All | Mine | Published
- update custom taxonomy custom fields
- Filter taxonomy by CPT
- Alike Shortcode using in Custom Shortcode