This file contains hidden or 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
function read_more($limit){ | |
$post_content = explode(" ", get_the_content()); | |
$less_content = array_slice($post_content, 0, $limit); | |
echo implode("", $less_content); | |
} |
This file contains hidden or 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
bounce | |
flash | |
pulse | |
rubberBand | |
shake | |
swing | |
tada | |
wobble | |
jello | |
bounceIn |
This file contains hidden or 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
textarea_html | |
exploded_textarea | |
dropdown | |
colorpicker | |
textfield | |
attach_image | |
checkbox | |
iconpicker | |
linecons | |
vc_link |
This file contains hidden or 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
//code for function page | |
//Register portfolio custom post | |
add_action('init', 'unique_custom_post'); | |
function unique_custom_post(){ | |
$labels = array( | |
'name' => _x( 'Portfolios', 'portfolios', 'cit-unique' ), | |
'singular_name' => _x( 'Portfolio', 'portfolio', 'cit-unique' ), | |
'menu_name' => _x( 'Portfolios', 'Portfolios', 'cit-unique' ), | |
'name_admin_bar' => _x( 'Portfolio', 'Portfolio', 'cit-unique' ), | |
'add_new' => _x( 'Add New', 'portfolio', 'cit-unique' ), |