GithubHelp home page GithubHelp logo

isabella232 / acf-options-for-polylang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eway-crm/acf-options-for-polylang

0.0 0.0 0.0 442 KB

A WordPress plugin for adding ACF options page support for Polylang.

Home Page: https://wordpress.org/plugins/acf-options-for-polylang/

License: Other

PHP 100.00%

acf-options-for-polylang's Introduction

Be API Github Banner

BEA - ACF Options For Polylang

You are using Advanced Custom Fields for creating option pages and you have Polylang installed for awsome multilingual site ?

Sadly, Polylang is not handling ACF's Option Pages. Which means values will be the same for all languages you have set :(

We are here to save your life ! Once this plugin is activated, you will be able to set a different value for each language, and if none is set, the "All languages" value will be used as default one.

How ?

This plugin is storing a value for each language into database. That means at activation, all data will not be anymore available, but still in database.Then Polylang's lang is used to get the values from the DB. Simply contribute your option page by selecting the Polylang's language from admin flags ui.

Requirements

Installation

Once activated Polylang's languages into admin area will affect ACF's options pages.

WordPress

  • Download and install using the built-in WordPress plugin installer.
  • Site activate in the "Plugins" area of the admin.
  • Optionally drop the entire acf-options-for-polylang directory into mu-plugins.
  • Nothing more, this plugin is ready to use !
  • Add repository source : { "type": "vcs", "url": "https://github.com/BeAPI/acf-options-for-polylang" }.
  • Include "bea/acf-options-for-polylang": "dev-master" in your composer file for last master's commits or a tag released.
  • Nothing more, this plugin is ready to use !

What ?

Features

  • Almost simple fields (text, textarea, links, etc)
  • Repeater fields ( with simple fields )

More features to come

As you can see, some issues are feature requests :

  • Migration of data for using plugin : at activation, all data will not be anymore available, but still in database.
  • Migration of data for not using plugin anymore

Next Roadmap

  • todo

Contributing

Please refer to the contributing guidelines to increase the chance of your pull request to be merged and/or receive the best support for your issue.

Issues & features request / proposal

If you identify any errors or have an idea for improving the plugin, feel free to open an issue. Please provide as much info as needed in order to help us resolving / approve your request.

For developpers

The plugin is designed to get the Polylang "All languages" value if the current lang one is empty. But if you are not interested about this behaviour, you can programmatically deactivate it using the following filter by setting to false : bea.aofp.get_default.

Who ?

Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.

This plugin is only maintained, which means we do not guarantee some free support. Consider reporting an issue and be patient.

If you really like what we do or want to thank us for our quick work, feel free to donate as much as you want / can, even 1โ‚ฌ is a great gift for buying cofee :)

License

BEA - ACF Options for Polylang is licensed under the GPLv3 or later.

acf-options-for-polylang's People

Contributors

maximeculea avatar nicolaskulka avatar jukra avatar rstefko avatar

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.