Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Font Awesome Field
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
=== Font Awesome Field === Contributors: tormorten Donate link: http://tormorten.no Tags: field, custom field, font awesome, font field, icon field, icon, font, icon font, custom, metabox, icon metabox Requires at least: 3.5 Tested up to: 4.0.1 Stable tag: 1.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Adds a metabox with a field where you can select a Font Awesome icon. == Description == Add a Font Awesome icon to your post with this awesome standalone custom metabox. Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS. For developers it is easy to use the field in your theme. With the template functions `the_fa()` for echoing and `get_ga()` for returning the icon within the WordPress loop. A handy Font Awesome shortcode is also included. Add an icon to your post by inserting `[fa icon="fa-gear"]`, where the attribute is the name of the Font Awesome icon. You can also insert the current post icon by using the shortcode `[fa]`. == Installation == 1. Upload `font-awesome-field` to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Select a field from the Font Awesome Field in your edit posts screen. 4. Place `<?php the_fa(); ?>` inside the WordPress loop in your templates. 5. Watch the magic happen. == Changelog == = 1.0 = First version