{"id":34357,"date":"2015-02-05T05:51:35","date_gmt":"2015-02-05T05:51:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-button-field\/"},"modified":"2015-02-06T04:36:20","modified_gmt":"2015-02-06T04:36:20","slug":"acf-button-field","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/acf-button-field\/","author":12302685,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0","tested":"4.1.42","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields: Button","header_author":"Matt Cromwell","header_description":"","assets_banners_color":"fdfafa","last_updated":"2015-02-06 04:36:20","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/mattcromwell.com","header_plugin_uri":"https:\/\/github.com\/envex\/acf-button-field","header_author_uri":"http:\/\/mattcromwell.com","rating":4,"author_block_rating":0,"active_installs":100,"downloads":4075,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<ul>\n<li>Initial release.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":"1","5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1082870","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1082870","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1082870","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1082870","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1082870","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1082870","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1082870","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1082870","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1082870","resolution":"5","location":"assets"}},"screenshots":{"1":"You see, just to output a simple link without the magic ACF } Button Field you need these whole TWO rows","2":"But with the magic ACF } Button Field, you just need this one.","3":"Again. What client wants to deal with this stuff!?","4":"Now this! This is what I'm talking about.","5":"But what if I just want to link to google.com? Switch it up! There you go, link to whatever the hell you want."}},"plugin_section":[],"plugin_tags":[2211,2223,2010],"plugin_category":[59],"plugin_contributors":[78840],"plugin_business_model":[],"class_list":["post-34357","plugin","type-plugin","status-closed","hentry","plugin_tags-acf","plugin_tags-add-on","plugin_tags-custom-fields","plugin_category-utilities-and-tools","plugin_contributors-webdevmattcrom","plugin_committers-webdevmattcrom"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/acf-button-field_fdfafa.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-button-field\/assets\/screenshot-1.png?rev=1082870","caption":"You see, just to output a simple link without the magic ACF } Button Field you need these whole TWO rows"},{"src":"https:\/\/ps.w.org\/acf-button-field\/assets\/screenshot-2.png?rev=1082870","caption":"But with the magic ACF } Button Field, you just need this one."},{"src":"https:\/\/ps.w.org\/acf-button-field\/assets\/screenshot-3.png?rev=1082870","caption":"Again. What client wants to deal with this stuff!?"},{"src":"https:\/\/ps.w.org\/acf-button-field\/assets\/screenshot-4.png?rev=1082870","caption":"Now this! This is what I'm talking about."},{"src":"https:\/\/ps.w.org\/acf-button-field\/assets\/screenshot-5.png?rev=1082870","caption":"But what if I just want to link to google.com? Switch it up! There you go, link to whatever the hell you want."}],"raw_content":"<!--section=description-->\n<p>NOTE: <strong>This is an extension for the popular <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a> plugin. By itself, this plugin does NOTHING.<\/strong> ENDNOTE<\/p>\n\n<p>Generates a nice button\/link to an external url or an internal post type, similar to the page_link field but allows you to override the link text.<\/p>\n\n<p>What makes this great is reducing two ACF rows into just one (see screenshots for a clear visual walkthrough). The internal link also uses a dropdown which is populated from all your post types so the button can link to a media file or a Custom Post Type, or of course to a page or post.<\/p>\n\n<p>NOTE: (<em>I know it was already mentioned, but just to be sure there's no confusion...<\/em>) <strong>This is an extension for the popular <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a> plugin. By itself, this plugin does NOTHING.<\/strong> ENDNOTE<\/p>\n\n<h4>Future Plans<\/h4>\n\n<p>Not much really. Probably just a couple things as the need arises:<\/p>\n\n<ul>\n<li>Add a filter for media types since the dropdown can get kinda totally out of control.<\/li>\n<li>Add a target field as well. This would allow for _blank and even \"<a href=\"http:\/\/fooplugins.com\/plugins\/foobox\">foobox<\/a>\" to be targeted.<\/li>\n<li>Add a checkbox to enable \"rel=nofollow\".<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This add-on can be treated as both a WP plugin and a theme include.<\/p>\n\n<h4>Plugin<\/h4>\n\n<ol>\n<li>Copy the 'acf-button' folder into your plugins folder<\/li>\n<li>Activate the plugin via the Plugins admin page<\/li>\n<\/ol>\n\n<h4>Theme Include<\/h4>\n\n<ol>\n<li>Copy the 'acf-button' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory<\/li>\n<li><p>Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-button.php file)<\/p>\n\n<p>add_action('acf\/register_fields', 'my_register_fields');<\/p>\n\n<p>function my_register_fields()\n{\n    include_once('acf-button\/acf-button.php');\n}<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why doesn't my link look like a button?<\/dt>\n<dd><p>I figure if you are using ACF then you're probably pretty comfortable styling this however you like.<\/p><\/dd>\n<dt>Can I contribute?<\/dt>\n<dd><p>I'd LOVE that!  Development of this happens over <a href=\"https:\/\/github.com\/mathetos\/acf-button-field\">here<\/a>.<\/p><\/dd>\n<dt>When are you going to implement those \"Future plans\"?<\/dt>\n<dd><p>As the need arises per client requests. Meaning: Don't hold your breath. Of course, if you want to contribute to those future plans, see previous FAQ.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>Forked from: https:\/\/github.com\/envex\/acf-button-field<\/p>\n\n<p>The original didn't seem to be updated or maintained, and I needed this for a client, so this is the fork.<\/p>\n\n<p>Here's a quick list of the updates made:<\/p>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Removed all ACF 3 code (really no need for that)<\/li>\n<li>Fixed bug with $button = $field['value'];<\/li>\n<li>Added class names to button output for unique styling. Class names automatically output based on Field label.<\/li>\n<\/ul>","raw_excerpt":"Generates a nice button\/link to an external url or an internal post type, similar to the page_link field but allows you to override the link text.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/34357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=34357"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webdevmattcrom"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=34357"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=34357"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=34357"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=34357"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=34357"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=34357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}