-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3129c8
commit 925f8f2
Showing
3 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# ACF Zelda Field | ||
# 👸 Zelda | ||
|
||
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). | ||
**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 `external` links, which are URLs by definition. | ||
- 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: | ||
|
||
```php | ||
// 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters