Giter VIP home page Giter VIP logo

Comments (5)

athlan avatar athlan commented on June 7, 2024

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.

shaneha12 avatar shaneha12 commented on June 7, 2024

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.

shaneha12 avatar shaneha12 commented on June 7, 2024

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.

athlan avatar athlan commented on June 7, 2024

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.

shaneha12 avatar shaneha12 commented on June 7, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.