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 // Taxonomy category shortcode | |
function cat_func($atts) { | |
extract(shortcode_atts(array( | |
'class_name' => 'cat-post', | |
'totalposts' => '-1', | |
'category' => '', | |
'thumbnail' => 'false', | |
'excerpt' => 'true', | |
'orderby' => 'post_date' | |
), $atts)); |
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 print_show_location( $terms = '' ){ | |
// check input | |
if ( empty( $terms ) || is_wp_error( $terms ) || ! is_array( $terms ) ) | |
return; | |
// set id variables to 0 for easy check | |
$country_id = $state_id = $city_id = 0; |
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 | |
add_action('init', 'review_register'); | |
function review_register() { | |
$labels = array( | |
'name' => _x('Event', 'Event'), | |
'singular_name' => _x('Event', 'Event'), | |
'add_new' => _x('Add New Event', 'Event'), |
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 gallery_list( $atts, $content = null ) { | |
extract(shortcode_atts(array('class' => ''), $atts)); | |
if ( function_exists( 'ot_get_option' ) ) { | |
/* get the slider array */ | |
$slides = ot_get_option( 'FILEDNAME', 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
Plugins | |
plugins_url() | |
plugin_dir_url() | |
plugin_dir_path() | |
plugin_basename() | |
Themes | |
get_template_directory_uri() | |
get_stylesheet_directory_uri() | |
get_stylesheet_uri() |