Comments (1)
Just include the PHP field definition as you would if you were using it in production. Most people copy the PHP code and then place it within their theme's functions.php
file.
The directions on ACF have you save the file in your theme folder as <your theme folder>/acf/acf.php
and then include them from your functions.php
by:
<?php
// ... the rest of the file
include_once( get_stylesheet_directory() . '/acf/acf.php' );
?>
http://www.advancedcustomfields.com/resources/including-acf-in-a-plugin-theme/
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
- Include the PHP for the ACF fieldsets generated from the PHP export. HOT 5
- 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
- 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.