Comments (5)
Hello @shaneha12 . For now it's designed to use post's data.
Could you give some example of such use case? What kind of option?
Because plugin is extensible and some static values could be used or some logic can be programmed. Link to wikipage:
from acf-permalink.
Thanks for replying. I suppose an example would be in the option page that you can setup with ACF, would be having a field for a city which you can then apply dynamically to a url.
from acf-permalink.
Where ACF permalinks pulls the $field_name data for the permalink, how would the 'option' field get pulled in the same time.
For example, normally you would use get_field('field_name', 'option'); to pull from the option page. How would i apply that same method to ACF permalinks?
On the permalinks page, %field_service_area% is specified to pull the field generically from each post page so maybe an option of %field_service_area-option% instead to pull from the option page?
from acf-permalink.
What get_field('field_name', 'option')
stands for sorry? https://www.advancedcustomfields.com/resources/get_field/
Its general site option? If so, why not just hardcode it in url?
For now plugin is post-oriented and I really don't see any benefit of using it for options page.
It of course can be extended for specific usecase (https://github.com/athlan/wordpress-custom-fields-permalink-plugin/wiki/FAQ) I don't feel its general usecase for users.
from acf-permalink.
Yeah its for the options page to pull from. I sorted it out and got it working by hardcoding it like you said. Appreciate the help. Works a treat.
from acf-permalink.
Related Issues (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-permalink.