Managed to get the custom field method to work, which saves alot of headache in the long run, solution was simple –
<?php post_class(get_field('the-field')); ?>
Related Posts:
- update_post_meta not working in function
- functions.php inject inline css
- Add options to featured image
- Assign category using custom field?
- How to use max and min values of custom fields
- What WordPress function to use to get meta value by using meta keys?
- Default Custom Field Value Automatically Update
- Redirect to another page using contact form 7? [closed]
- ACF not showing
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- Prevent custom field from being updated after first publish
- Programmatically add Yoast meta description after post save
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Perform function on publish AND save (not just save)
- How to change text color depending on the number value (Using javascript)
- Creating a “Related Meta” type field?
- Return ACF Field value function
- Syling Custom Fields echo’s from from functions.php
- Add custom fields after post/page title
- Adding and updating repeating custom field meta data
- How to display custom field in woocommerce orders in admin panel?
- How to load scripts/styles specific for a page
- Get a list of all available fields in the User Profile
- Enabling shortcodes for custom fields
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- TinyMCE custom stylesheets for different post types
- Remove “says” from comments
- How to add CSS style sheet dynamically in wordpress
- query posts in functions.php and update a field
- Function to Download External Images to My Site
- Copying Custom Meta Values from existing post to a duplicate post
- CSS stylesheet not loading
- Register and enqueue style.css custom theme
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- ACF: How to get the full field name (meta_key) by a field key?
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Retrieve tags data in post body
- How to Display Frontend CSS for Administrator only
- Move Post to different category if post_meta field is 0 or is 2 days old?
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Post meta not updating
- Function to update post_meta based on existing post_meta
- different style sheet for just one page template
- Custom styles.css sheet for visual editor
- How to get correct value from checked()?
- Get array of metakey in all posts
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Adding class to last list item? Not WP generated
- Access category within rss2_head hook?
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Compare meta key to current date in pre get post
- WordPress creates new lines in postmeta table on post update
- How to insert class in each list of categories?
- I can’t add CSS with functions.php
- Insert Address fields into function
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- How add body_class from wp_termmeta
- remove/hide wp-editor
- shorthand syntax for custom fields
- Fill empty custom field with other custom field
- Page Template Won’t Load Correct CSS File
- saving/reading custom field value does not work – no value gets POSTed
- define css class in functions.php
- Excerpt length: get first paragraph
- How to avoid saving empty data to sql while using add_meta_box
- Completely Disable WordPress RSS Feeds
- get_field values for each post on home page using wp_add_inline_style
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Can we have conditional CSS styling?
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- function class doesnt work
- ACF Date Form in Custom Admin Field
- how to remove a tag in the_category function
- Create New User Custom Field not Saving
- How To Display Author Popup on Entry Meta (Genesis Framework)?
- Hide empty custom field
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- Comment function for page
- ACF Filter return value
- How to automatically add custom classes to headings in content area
- How to echo the translated custom field?
- How to add function to custom fields when page/post has a password?
- How to exclude posts with empty and non-existent relational custom field with meta_query?
- How to add meta fields to custom taxonomy add/edit page?
- Define an extra field for all pages (with no plugin?)
- Adding custom field in menu options [duplicate]
- Changing the color of post title [closed]
- How to add a meta information to the URL?
- Random text changing to weird icons in both admin & front end
- Run function after post is updated
- functions.php / replacing div’s with new ones?
- ACF Date fileds to Age Convert [closed]
- Image width issue in IE [closed]
- How do I make my child theme’s CSS update when I save it?
- Change Post status based on custom field date +1 day
- Update post meta with wp cron
- ACF number less than comparison not working
- Add custom css to specific user