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
- Programatically add options to “add new” custom field dropdown
- How do I create a new WP admin color scheme?
- Add attribute to link tag that’s generated through wp_register_style?
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- Authors details such as social media links, emails etc → Is this Meta or something else?
- post meta data clearing on autosave
- update_post_meta for custom field not working upon form submission
- Is it possible to be more page/post specific with admin_enqueue_script?
- How can update custom meta for all posts
- Child Theme Not Overriding Parent Theme
- Enqueue styles after a plugin
- Checked() showing up twice in custom fields
- Convert User ID’s to User Names in a single.php file
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Add class or ID to any WordPress function
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Having issues with a foreach inside of a shortcode with ACF gallery
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- WordPress Menuing Question :focus
- Get Current Post ID in functions php, meta query filter
- How to create an input field, and base the output on spreadsheet data? [closed]
- change the url paths in the stylesheet dynamically
- Change label for registration Fields
- Custom Attachment Caption Fields
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Is my code correct to enqueue CSS on a specific page?
- Not all CSS elements transferring via parent to child?
- Get array of metakey in all posts
- Split Media Queries in different files!
- Hide custom fields when empty
- problem loading stylesheets to wp_head dynamically
- Can set_post_thumbnail be used to remove a thumbnail?
- Parent theme styles overriding child theme CSS [closed]
- Saving Post Data in Another Database
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Default Nav Highlight
- get_template_directory_uri() links to child theme not parent
- Using two loops in one WordPress template
- How to get custom image field of specific post id
- What snippet do I need to type to show my ACF field show up on my theme?
- Delete images from media library when user deletes an image from ACF Gallery
- How to show ACF value under post/page title in wp-admin
- How to display an image before title text in menu items
- How to add custom metakey to shop_order page’s searching function?
- wp_set_object_term via js btn frontend
- Filter works on last selection but no others
- Can’t load assets
- CSS style and app.js not loading
- blank page with wp_get_attachment
- How do I make a custom “Read More Blogs” button for my blog page
- Assign IDs to headings in ACF using functions.php
- Setting Up Child Theme To Take Priority
- How to add styles in existing function?
- How would I correctly implement a new if statement in a child functions file?
- Child Theme not loading multiple stylesheets
- Remove post from latest posts after a month only with certain tag
- save_post doesn’t correctly process function call with php class
- Correct way of Enqueue self hosted fonts in sass project
- How To Show Shortcodes In WordPress Custom Fields?
- How to automatically add custom classes to headings in content area
- Providing fallback function and allow override by plugin
- Post date on Custom field
- Different body image backgrounds on different pages, posts and categories
- Dynamically generated Navigation Diagram using Custom Fields
- How To Get WordPress Categories Last Update Date?
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Functions.php in child theme that loads CSS file breaks website
- How to display data from custom fields in my custom shortcode?
- update_post_meta after form is submited
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- Call ACF data from functions.php [closed]
- Display post_meta-by_key on product catalogue
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- wp_head not injecting css
- acf_form() – “On Update” action [closed]
- save all acf options in one meta_value [closed]