Skip to content

Commit 925f8f2

Browse files
committed
Update documentation and version
1 parent f3129c8 commit 925f8f2

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
# ACF Zelda Field
1+
# 👸 Zelda
22

3-
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. title, target, etc).
3+
**A more useful Link**
4+
5+
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).
6+
7+
## Features
8+
9+
- Select the content and taxonomy types *you* want to link to!
10+
- *Never* store URLs in the database (all links are created at page-load)!
11+
- Well, except for `external` links, which are URLs by definition.
12+
- Filter *everything* (**future release**)
13+
- Add your own link types on the fly (**future release**)
14+
15+
## Usage
16+
17+
It's just a WordPress plugin, so plug it in!
18+
19+
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:
20+
21+
```php
22+
// page-template.php
23+
the_field('example_zelda_field');
24+
// <a href="/posts/a-post-you-linked-to" class="field-class class-the-user-set">Link Text!</a>
25+
```

acf-zelda.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Advanced Custom Fields: Zelda
55
Plugin URI: https://github.com/alwaysblank/zelda
66
Description: More flexible, less fragile: Better link selection.
7-
Version: 0.0.1-alpha
7+
Version: 0.0.1
88
Author: Ben Martinez-Bateman
99
Author URI: https://www.alwaysblank.org
1010
License: GPLv2 or later
@@ -33,7 +33,7 @@ class livy_acf_plugin_zelda {
3333
*
3434
* @type function
3535
* @date 17/02/2016
36-
* @since 1.0.0
36+
* @since 0.0.1
3737
*
3838
* @param void
3939
* @return void
@@ -44,7 +44,7 @@ function __construct() {
4444
// settings
4545
// - these will be passed into the field class.
4646
$this->settings = array(
47-
'version' => '1.0.0',
47+
'version' => '0.0.1',
4848
'url' => plugin_dir_url( __FILE__ ),
4949
'path' => plugin_dir_path( __FILE__ )
5050
);
@@ -63,7 +63,7 @@ function __construct() {
6363
*
6464
* @type function
6565
* @date 17/02/2016
66-
* @since 1.0.0
66+
* @since 0.0.1
6767
*
6868
* @param $version (int) major ACF version. Defaults to 4
6969
* @return void

readme.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
=== Advanced Custom Fields: Zelda Field ===
22
Contributors: Ben Martinez-Bateman
33
Tags: acf, wordpress, link
4-
Requires at least: 3.6.0
5-
Tested up to: 4.9.0
6-
Stable tag: trunk
4+
Requires at least: 4.0.0
5+
Tested up to: 0.0.0
76
License: GPLv2 or later
87
License URI: http://www.gnu.org/licenses/gpl-2.0.html
98

@@ -28,5 +27,5 @@ This ACF field type is compatible with:
2827

2928
== Changelog ==
3029

31-
= 1.0.0 =
32-
* Initial Release.
30+
= 0.0.1 =
31+
* Initial functionality. Not recommended for production use.

0 commit comments

Comments
 (0)