-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreadme.txt
executable file
·74 lines (49 loc) · 2.1 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
=== Advanced Custom Fields: oEmbed Field ===
Contributors: edwardtownend
Tags: advanced-custom-fields, acf, oembed
Requires at least: 3.4
Tested up to: 4.0
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Adds an oEmbed field type to Advanced Custom Fields.
== Description ==
Requires the Advanced Custom Fields plugin. Output can be selected as HTML embed, URL, or data object. Includes settings for preview and output resolution and will accept any provider registered in WordPress.
**With the news that ACF V5 includes a built-in oEmbed field type, we're discontinuing further development of this plugin. The plugin will remain online for legacy V4 support to those that haven’t upgraded, but only essential updates will be released.**
= Compatibility =
This add-on will work with:
* Advanced Custom Fields version 4 and up
* Repeater Field
== Installation ==
This add-on can be treated as both a WP plugin and a theme include.
= Plugin =
1. Copy the 'acf-oembed' folder into your plugins folder
2. Activate the plugin via the Plugins admin page
= Include =
1. Copy the 'acf-oembed' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory
2. Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-oembed.php file)
`
add_action('acf/register_fields', 'my_register_fields');
function my_register_fields()
{
include_once('acf-oembed/acf-oembed.php');
}
`
== Frequently Asked Questions ==
= What oEmbed sources are supported? =
Any supported by WordPress. See [Embeds on wordpress.org](http://codex.wordpress.org/Embeds)
= Can I use this in a repeater field? =
Yep, you sure can.
== Screenshots ==
1. The Add Field interface.
2. The field in an Advanced Custom Field.
== Changelog ==
= 1.0.3 =
* Remove PHP short tag dependancy
* Fix for 'Missing argument' warning when getting the object and not supplying arguments
= 1.0.2 =
* Improve reliability on freaky servers
= 1.0.1 =
* Prevent PHP error caused by missing v3 compatibility
= 1.0.0 =
* Initial Release.