2017 © Pedro Peláez
 

wordpress-plugin acf-flexible-link

image

newcity/acf-flexible-link

  • Tuesday, April 3, 2018
  • by newcity
  • Repository
  • 1 Watchers
  • 0 Stars
  • 157 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 132 Forks
  • 2 Open issues
  • 9 Versions
  • 227 % Grown

The README.md

Flexible Link Field for Advanced Custom Fields

This plugin is an extension for the Advanced Custom Fields, version 5.0 or higher. It will do nothing unless the ACF plugin is also installed., (*1)

The primary function of the Flexible Link Field is to allow the insertion of either an internal Wordpress post/page, an external URL, or an email address without having to use complicated conditionals or write extra template logic., (*2)

How to use

Install and activate the plugin as you would any other Wordpress plugin, making sure that the ACF Pro plugin is also installed and activated. This will add an entry called "Flexible Link" to the Field Type menu when you are creating a new ACF field group., (*3)

The Flexible Link field type includes the following settings:, (*4)

  • Allowed Link Types: Turn access to different link types on or off in the created field. For example, you may want to enable internal pages and external urls, but disallow e-mail addresses for a particular field., (*5)

  • Show link text field: If enabled, this allows text to be associated with the link. This is particularly useful for buttons., (*6)

  • Return Value: The field can return either an object or a simple string containing a URL. The object contains the following keys:, (*7)

    • text: The text entered in the Link Text field. If Show link text field is set to "no," its value will be false.
    • url: The URL that matches the selected link type. This is also the value that will be returned if Return Value is set to URL only.
    • link_type: The selected link type as a string, e.g. 'post', 'url', 'email'
  • Filter Internal Links by Post Type: If "Internal Post" is one of the allowed link types, this field controls which post types can be selected for that type., (*8)

Acknowledgements

This extension was built with the official ACF Field Type Template. It borrows a lot of ideas and some code from the ACF Smart Button extension., (*9)

The Versions

03/04 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

09/01 2018

v0.2.1

0.2.1.0

  Sources   Download

The Requires

 

10/10 2017

v0.2.0

0.2.0.0

  Sources   Download

The Requires

 

10/10 2017

v0.1.7

0.1.7.0

  Sources   Download

The Requires

 

18/08 2017

v0.1.6

0.1.6.0

  Sources   Download

The Requires

 

08/08 2017

v0.1.5

0.1.5.0

  Sources   Download

The Requires

 

07/08 2017

v0.1.4

0.1.4.0

  Sources   Download

The Requires

 

07/08 2017

v0.1.3

0.1.3.0

  Sources   Download

The Requires

 

17/07 2017

v0.1.2

0.1.2.0

  Sources   Download

The Requires