keithg

How to Create Additional Image Sizes in WordPress

Follows below the code used on functions.php: //Soft Crop used in example 2 if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘new-size8’, 256, 148 ); } add_filter(‘image_size_names_choose’, ‘my_image_sizes8’); function my_image_sizes8($sizes) { $addsizes = array( “new-size8” => __( “New Size8”) ); $newsizes = array_merge($sizes, $addsizes); return $newsizes; } ////Hard Crop used...Read more …
keithg

Next page in post or page

NextPage (Pagination) Did you know you could split a post/page up into different web pages so that it has pagination? All you have to do is type: <!--nextpage--> into the HTML editor where you would like your page breaks to appear. You can use it throughout a long post to...Read more …
Ajit N

WP Add custom column to Users List admin panel

Use below code to allow your users to add phone numbers. Paste this full code in functions.php file. This will add new field on user profile for “Phone Number” and add a column user table on WordPress admin for phone. [crayon-59eceb0f2ecc1980743853/]  Read more …
Ajit N

Display or retrieve the HTML dropdown list of categories.

The ‘hierarchical’ argument, which is disabled by default, will override the depth argument, unless it is true. When the argument is false, it will display all of the categories. When it is enabled it will use the value in the ‘depth’ argument. [crayon-59eceb0f2f7fa617703988-i/] For get html list of category by...Read more …