WP Manifestindependent plugin directory
manifest / content / zelda

Advanced Custom Fields: Zelda

A more useful Link

★ 26stars
556composer installs
0.0.1latest · never

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/alwaysblank/zelda/archive/refs/heads/master.zip

On Packagist as livy/zelda:

composer require livy/zelda
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A more useful Link

I don't want to store URLs for local content in the database: Neither do you. This allows you to store links to any kind of content in a better, safer way. It also allows you to define a bit of link metadata (i.e. text, target, etc).

Features

  • Select the content and taxonomy types you want to link to!
  • Never store URLs in the database (all links are created at page-load)!
    • Well, except for uri links, which are URLs by definition.
      • ...But it does try and guess if uri links are local, and saves them without a host if they are (so you don't end up with staging URLs on production).
  • Filter everything (future release)
  • Add your own link types on the fly (future release)

Usage

It's just a WordPress plugin, so plug it in!

Once you've done that, just add a Zelda field and then call it in your template like you'd do with any other ACF field:

// page-template.php
the_field('example_zelda_field');
// <a href="/posts/a-post-you-linked-to" class="field-class class-the-user-set">Link Text!</a>

This is the default behavior. You can also return a url or the array stored in the databased by setting return_format to url or array.

Releases

1 release.

Tag
Published
0.0.1 latest
Jun 21, 2018 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.