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
1.(wp bassic code) | |
<?php bloginfo('title'); ?> -- For blog title. | |
<?php bloginfo('description'); ?> -- For Blog Description | |
<?php bloginfo('charset'); ?> -- For UTF-8 Encoding for pages and feeds | |
<?php bloginfo('stylesheet_url'); ?> --Displays the primary CSS (usually style.css) | |
<?php language_attributes(); ?> -- support language from html tag in html: lang="en" . | |
<?php echo esc_url(get_template_directory_uri()); ?> -- for call theme directory to support images, css, js file | |
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 if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. | |
// =============================================================================================== | |
// ----------------------------------------------------------------------------------------------- | |
// METABOX OPTIONS | |
// ----------------------------------------------------------------------------------------------- | |
// =============================================================================================== | |
$options = array(); | |
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 get_header(); ?> | |
<?php while( have_posts()): the_post(); | |
if(get_post_meta(get_the_ID(), 'neuron_work_meta', true )){ | |
$work_meta = get_post_meta(get_the_ID(), 'neuron_work_meta', true ); | |
}else{ | |
$work_meta = array(); |
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 | |
/* | |
Plugin Name: Industry Toolkit | |
Plugin URI: http://www.bandevs.com | |
Author: Rubel Hasan | |
Author URI: http://www.facebook.com/rubel.hasan.3572 | |
Description: This plugin use for only this theme | |
Version: 1.0 | |
Tag: Industry, Basic, Shortcode generator |
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 | |
function post_shortcode($atts, $content= null ){ | |
extract(shortcode_atts(array( | |
'post_type' => "post", | |
'post_per_page' => 10 | |
), $atts)); | |
$get_post = new WP_Query(array( | |
'post_type' => 'page', | |
'post_per_page' => 5 |
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
// Change number or products per row to 3 | |
add_filter('loop_shop_columns', 'loop_columns'); | |
if (!function_exists('loop_columns')) { | |
function loop_columns() { | |
return 3; // 3 products per row | |
} | |
} |
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
// WooCommerce Theme Support | |
add_action( 'after_setup_theme', 'woocommerce_support' ); | |
function woocommerce_support() { | |
add_theme_support( 'woocommerce' ); | |
} |
OlderNewer