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
<?php | |
// Add the following to your theme's functions.php file | |
add_action( 'plugins_loaded', 'add_categories_to_cpt', 15 ); | |
function add_categories_to_cpt(){ | |
register_taxonomy_for_object_type( 'category', 'faq'); | |
// 'faq' can be changed to any registered post type | |
} |
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
<?php | |
$cpt = new Arconix_CPT_Register(); | |
$cpt->add( 'books' ); | |
$tax = new Arconix_Taxonomy_Register(); | |
$tax->add( 'genres', 'books' ); |
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
<?php // DO NOT include the opening php tag | |
// Replace 4.6.0 with whatever version you'd like | |
add_filter( 'arconix_fontawesome_version', '4.6.0' ); |
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
<?php // DO NOT include the opening php tag | |
add_action( 'init', 'arconix_post_type_supports' ); | |
function arconix_post_type_supports() { | |
add_post_type_support( 'portfolio', 'comments' ); | |
} |
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
<?php // DO NOT include the opening php tag | |
add_filter( 'arconix_portfolio_defaults', 'my_custom_rewrite' ); | |
function my_custom_rewrite( $defaults ) { | |
$defaults['post_type']['args']['has_archive'] = true; | |
$defaults['post_type']['args']['rewrite']['slug'] = 'CUSTOMREWRITE'; | |
// change CUSTOMREWRITE to your desired slug -- http://yourdomain.com/CUSTOMREWRITE | |
return $defaults; | |
} |
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
## 2 columns - 40% / 60% ## | |
[two-fifths] | |
Content | |
[/two-fifths] | |
[three-fifths last] | |
Content | |
[/three-fifths] | |
## 3 columns - 20% / 60% / 20% ## | |
[one-fifth] |
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
## 2 columns - 25% / 75% ## | |
[one-fourth] | |
Content | |
[/one-fourth] | |
[three-fourths last] | |
Content | |
[/three-fourths] | |
## 3 columns - 25% / 25% / 50% ## | |
[one-fourth] |
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
## 2 columns - 33% / 66% ## | |
[one-third] | |
This is the column 1 content | |
[/one-third] | |
[two-thirds last] | |
This is the column 2 content | |
[/two-thirds] | |
## 3 columns - 33% ea ## | |
[one-third] |
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
## 2 columns - 50% ea ## | |
[one-half] | |
This is the left column content | |
[/one-half] | |
[one-half last] | |
This is the right column content | |
[/one-half] |
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
[list icon="fa-send" icon_color="green"] | |
-= Use the unordered list button on the editor toolbar to create the actual list items =- | |
* Item 1 | |
* Item 2 | |
* Item 3 | |
[/list] |
NewerOlder