Tags » Function

Custom Post and taxonomy in wordpress

function post_section() {
register_post_type( ‘featured_sec’,
array(
‘labels’ => array(
‘name’ => __( ‘Postl’ )
),
‘public’ => true,
‘supports’ => array(
‘title’,
‘editor’,
‘excerpt’,
‘trackbacks’, 235 more words

Function

Add Bootstrap in Wordpress

function my_bootstrap_theme_scripts() {

wp_enqueue_script( ‘bootstrap-js’,get_template_directory_uri() .’/js/bootstrap.min.js’, array ( ‘jquery’ ), ‘3.3.6’);
wp_enqueue_style( ‘bootstrap-css’,get_template_directory_uri() .’/css/bootstrap.min.css’);
wp_enqueue_script( ‘bootstrap-js’ );
wp_enqueue_style( ‘bootstrap-css’ );
wp_enqueue_style(‘font-awesome.min-css’, get_template_directory_uri() .’/font-awesome-4.6.3/css/font-awesome.min.css’);
wp_enqueue_style(‘font-awesome.min-css’);
} 9 more words

Function

Excerpt(use post contant short)

Excerpt function used for post contant small

function excerpt($size,$content){
$excerpt = explode(‘ ‘, strip_tags($content),$size);
if(count($excerpt)>=$size){
array_pop($excerpt);$excerpt=implode(” “,$excerpt);
}
else{
$excerpt=implode(” “,$excerpt);
}
$excerpt = preg_replace(‘`[[^]]*]`’,”,$excerpt); 18 more words

Function

Scientists uncover how a fluctuating brain network may make us better thinkers.

For the past 100 years, scientists have understood that different areas of the brain serve unique purposes. Only recently have they realized that the organization isn’t static. 104 more words

ALL WRITINGS

Remove admin menu anything else

Remove admin theme option

#remove—————-
function remove_option_framework_from_menu() {
remove_menu_page(‘themes.php?page=optionsframework’);
}
add_action(‘admin_menu’,’remove_option_framework_from_menu’);

PHP

Exhaustion From Over Micro Managing

A lot of of us get tired even wasted because of “playing police” toward ourself. The reason is valid (so that we have a good life and maybe not doing harm to people around), but the method is not. 248 more words

Belief

Logistic Regression versus Decision Trees

The question of which model type to apply to a Machine Learning task can be a daunting one given the immense number of algorithms available in the literature. 603 more words

WhizzML