Skip to content

Instantly share code, notes, and snippets.

View mohiuddin3824's full-sized avatar

H M Mohiuddin mohiuddin3824

View GitHub Profile
@mohiuddin3824
mohiuddin3824 / custom-excerpt.php
Created April 15, 2018 11:40
How to make custom excerpt in WordPress
function read_more($limit){
$post_content = explode(" ", get_the_content());
$less_content = array_slice($post_content, 0, $limit);
echo implode("", $less_content);
}
@mohiuddin3824
mohiuddin3824 / css-animations-list.php
Created April 15, 2018 06:45
css animations list
bounce
flash
pulse
rubberBand
shake
swing
tada
wobble
jello
bounceIn
@mohiuddin3824
mohiuddin3824 / WpBakery-types
Last active July 24, 2018 03:33
WpBakery page builder addon's types
textarea_html
exploded_textarea
dropdown
colorpicker
textfield
attach_image
checkbox
iconpicker
linecons
vc_link
@mohiuddin3824
mohiuddin3824 / Dynamic portfolio
Last active March 27, 2018 10:39
how to make dynamic portfolio
//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' ),