I’m not sure what exactly your setup is or where this file is but ACF saves its values as post meta. So you could simply use WP’s get_post_meta() if ACF isn’t available.
For Example:
get_post_meta( get_the_ID(), 'field_name', true );
You can also have a look at this article, it talks about using get_post_meta vs ACF functions.
Related Posts:
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Position a repeated article blocks
- How to target with css, admin elements according to user role level?
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- “wp_enqueue_style();” don’t load new edited style
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- WordPress Customizer not setting default value upon initial install?
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Archive dropdown styling not applied
- Can an array be used as a meta_query value?
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- ACF check if variable has http, if else return string
- Show post in slider
- How can I hide Home in my menu in a specific page?
- Slider loading issue
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- how to remove metadata from the posts of my blog?
- ACF: how do I get the fields and its values of a specific group?
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Remove the first 5 characters of the_title and orderby that
- How to use thumbnail size of image if I’m only using src to get image
- How to add condition in wordpress loop? [closed]
- Css loads very slow [closed]
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Redirect to another page using contact form 7? [closed]
- Which is the correct way to conditionally enqueue a CSS file?
- Custom Background by Page IDs
- Change CSS based on is_user_logged_in
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Where can I find the inline-css of my theme header?
- Website completely messes up when logging out
- Issue Enqueueing WordPress style.css
- How to add new CSS file to new PHP file
- Applying CSS on PHP variable [closed]
- Including Custom fields within the_content
- Update user repeater meta (ACF) with another user meta field value
- Timber right sidebar in WordPress theme
- How to find which .mo file is responsible for displaying a particular localized string?
- Get main parent category for post (WordPress/Advanced Custom Fields)
- Add other class content with reference class value
- ACF Taxonomy field values not select in backend
- Adding Custom css file in the wp-uploads directory with custom php functions
- How do I integrate vanilla Javascript to a wordpress website?
- Use WPQuery to match to specific repeater row in post
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- make p tag collapsed after 3 rows
- ACF – Can’t get custom post type by taxonomy
- Advance custom fields variable with if statement & Function
- ElseIf Statement with ACF Group field
- WordPress Slider is not working
- Place product field value as variable in php
- ACF – Get ID of relationship field in flexible content
- How to display post meta bellow every posts
- Add my footer menu to the header
- Make a full-width wordpress page
- Get list of posts from attachment
- How to output values from a loop into a javascript array
- Pulling Products from an API
- Bring Font Awesome icons inside menu A tags
- Scheduling a post using publish date from a custom field. Resulting post is set as published in the future instead of scheduled
- Trying to add get_the_title hook to this line
- How to display post_content from database in different on template page?
- Displaying POST content with HTML tags and all
- remove blank space where sidebar was
- Ordering / grouping posts by datepicker ACF
- Display specific main Sub Nav on Woocommerce product pages
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Highlight Single Page Ancestor
- Custom Thumbnails [closed]
- ACF Images If/else
- Relative post date in recent posts list
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Why isn’t my link attribute getting my css?
- How to save the output of php variables used in inline css code to the main style.css?
- wp add inline style in loop
- Display pages from specific page template
- Trying to customize wordpress drop down categories
- the_post_thumbnail unless video id is added
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Sidebar doesnt get updated?
- How to NOT override inline css rules
- Add comma between variables [closed]
- Load files content [closed]
- Integrating CSS Into a WP Function Call [closed]
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Predefine Magazine Style Layouts
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- Custom HTML/CSS Theme into WordPress – SEO considerations
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- WooCommerce Checkout Cart [closed]
- How can I get values from a custom post type depending on where I click on my SVG map?
- why css file not link?how to create permalink?
- Creating posts with php-script + csv
- Using Featured Image as Hero Background in Word Press