All Projects → BeAPI → Acf Options For Polylang

BeAPI / Acf Options For Polylang

Licence: other
A WordPress plugin for adding ACF options page support for Polylang.

Projects that are alternatives of or similar to Acf Options For Polylang

acf-field-boilerplate
Modernized PSR-2 boilerplate for creating custom fields for ACF5.
Stars: ✭ 54 (-58.78%)
Mutual labels:  wordpress-plugin, acf
bea-beautiful-flexible
Transform ACF's flexible layouts list into a nice and UX popup.
Stars: ✭ 19 (-85.5%)
Mutual labels:  wordpress-plugin, acf
acf-swatch
ACF Color Swatch Field
Stars: ✭ 67 (-48.85%)
Mutual labels:  wordpress-plugin, acf
flexible-templates
Allows saving templates of the "Flexible Content" field, for easy and fast use of them on other pages.
Stars: ✭ 36 (-72.52%)
Mutual labels:  wordpress-plugin, acf
Redux Framework
Redux is a simple, truly extensible options framework for WordPress themes and plugins!
Stars: ✭ 1,602 (+1122.9%)
Mutual labels:  wordpress-plugin, options
index-autoload
Adds an index to the autoload in wp_options table and verifies it exists on a daily basis (using WP Cron), resulting in a more efficient database.
Stars: ✭ 18 (-86.26%)
Mutual labels:  wordpress-plugin, options
acf-flexible-content-preview
Transforms ACF's flexible content field's layout list into a modal with image previews.
Stars: ✭ 21 (-83.97%)
Mutual labels:  wordpress-plugin, acf
acf-typography
A Typography Add-on for the Advanced Custom Fields Plugin
Stars: ✭ 14 (-89.31%)
Mutual labels:  wordpress-plugin, acf
Acf To Rest Api
Exposes Advanced Custom Fields Endpoints in the WordPress REST API
Stars: ✭ 1,152 (+779.39%)
Mutual labels:  acf, wordpress-plugin
Acf Quickedit Fields
WordPress Plugin implementing Column Displaying, QuickEdit and BulkEdit for Advanced Custom Fields (ACF)
Stars: ✭ 328 (+150.38%)
Mutual labels:  acf, wordpress-plugin
Codestar Framework
A Simple and Lightweight WordPress Option Framework for Themes and Plugins
Stars: ✭ 147 (+12.21%)
Mutual labels:  wordpress-plugin, options
Fewbricks
Write code to create ACF field groups, fields and re-usable modules.
Stars: ✭ 100 (-23.66%)
Mutual labels:  acf, wordpress-plugin
acf-country
ACF Country field - Display a select field of all countries, in any language.
Stars: ✭ 103 (-21.37%)
Mutual labels:  wordpress-plugin, acf
acf-phone-number
A real ACF phone number field powered by libphonenumber and intl-tel-input
Stars: ✭ 68 (-48.09%)
Mutual labels:  wordpress-plugin, acf
Acf Star Rating Field
A simple star rating field for ACF.
Stars: ✭ 94 (-28.24%)
Mutual labels:  acf, wordpress-plugin
Acf Codifier
A wrapper class to help write more readable ACF field declarations.
Stars: ✭ 114 (-12.98%)
Mutual labels:  acf, wordpress-plugin
Wp Graphql Yoast Seo
This is an extension to the WPGraphQL plugin for Yoast SEO
Stars: ✭ 120 (-8.4%)
Mutual labels:  wordpress-plugin
Wp Statuses
WordPress plugin to ease Custom Post Statuses integration
Stars: ✭ 125 (-4.58%)
Mutual labels:  wordpress-plugin
Robinhood Google Sheets
Robinhood Custom Functions for Google Sheets 📈
Stars: ✭ 117 (-10.69%)
Mutual labels:  options
Wordpress Activitypub
ActivityPub for WordPress
Stars: ✭ 118 (-9.92%)
Mutual labels:  wordpress-plugin

Be API Github Banner

BEA - ACF Options For Polylang

CodeFactor

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 will store a value for each language into database. Then Polylang's languages are used to get the values from the DB. That means at activation, all existing data will not be anymore available, but still in database. You will retrieve it ad plugin deactivation.

Then to set and contribute your option page, simply use the Polylang's language admin flags ui.

Requirements

Installation

First activate and configure Polylang in you site. Then activate ACF Options For Polylang to handle ACF Options in setted Polylang's languages.

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 !

Composer

  • composer require wpackagist-plugin/acf-options-for-polylang
  • 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

  • Fixing [#41] : repeater issue when need to get all languages one.

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 developers

Using fields

Nothing change, we have made all the hooks for you, so no need to prefix your fields with a lang or something else. Only use ACF's helpers to get and show the fields as you did before with get_field() or the_field() :

get_field( 'footer_disclaimer', 'options' );

Default values (with "All languages")

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.

For all ACF Options pages

<?php add_filter( 'bea.aofp.get_default', '__return_false' );

For just one ACF Options page

<?php add_filter( 'bea.aofp.get_default', function( $show_default, $post_id ) {
	if ( 'my_custom_acf_option_post_id' === $post_id ) {
		// Custom condition for the wanted post id ACF Option page
		return false;
	}

	return $show_default;
}, 10, 2 );

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 GPLv2 or later.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].