Comments (5)
Hi @jonatasu,
The best way to include ACF Fields is through PHP, please find more details in ACF's documentation.
Otherwise, to strictly answer your question, we use to include into a plugin or a theme.
The way to do it is the same, it depends only where you put the ACF PHP export file.
If we got a file call fields.php
, the path to the fields could be :
- plugin =>
wp-content/plugins/my-plugin/assets/acf/php/fields.php
- theme =>
wp-content/themes/my-theme/assets/acf/php/fields.php
And then you include it with the following statement :
add_action( 'init', 'bea_register_fields' );
function bea_register_fields() {
require_once( PATH_TO_FIELDS );
}
Does it sounds better now for you ?
from acf-php-recovery.
Yeah, thanks @MaximeCulea ! I'll try later.
from acf-php-recovery.
Hi @jonatasu,
Have you tried ?
Can we close this issue ?
Thx
from acf-php-recovery.
Hello @MaximeCulea,
I'm not working on the project anymore, but I did't resolve this issue through a recent version of ACF.
We can close it, thanks!
from acf-php-recovery.
π thx
from acf-php-recovery.
Related Issues (13)
- Importing only last field HOT 9
- Cannot save data using recovered fields HOT 5
- Bug dans la requΓͺte SQL HOT 2
- Fields disappear from front-end after "recovering" HOT 1
- Not working with ACF 5.7.12 onwards β "acf_local" function removed HOT 6
- Location HOT 1
- Location rules aren't imported HOT 2
- Conditional logic HOT 8
- Insufficient permissions error HOT 1
- File location HOT 1
- Thanks! How can I donate? HOT 3
- Unable to find options page HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf-php-recovery.