beaucharman / wordpress-custom-post-types

A PHP class to help register and maintain WordPress custom post types. It also comes with some rad built in properties and methods that can be used in templates to maintain clean code modular development.
https://github.com/beaucharman/wordpress-custom-post-types
26 stars 12 forks source link

Font Awesome #5

Closed lukejanicke closed 8 years ago

lukejanicke commented 9 years ago

Just can’t get Font Awesome icons to work.

require_once dirname( FILE ) . '/includes/custom-post-type.php';

$args['name'] = 'Listings';

$args['labels'] = array( 'singular' => 'Listing', 'plural' => 'Listings', 'menu' => 'Listings' );

$args['options'] = array( 'public' => true, 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'has_archive' => true );

$args['menu_icon'] = 'f00b'; // Font Awesome Unicode

$args['help'] = array( array( 'message' => '' ), array( 'context' => 'edit', 'message' => '' ) );

Custom_Post_Type::get_font_awesome();

$Listings = new Custom_Post_Type( $args );

lukejanicke commented 8 years ago

I have no idea what I was trying to do here. Closing.