This file contains hidden or 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
$is_ms = ''; | |
if ( is_multisite() ) $is_ms = 'network/'; | |
if ( $_SERVER['PHP_SELF'] === '/wp-admin/' . $is_ms . 'plugin-editor.php' || | |
$_SERVER['PHP_SELF'] === '/wp-admin/' . $is_ms . 'theme-editor.php' || | |
$_SERVER['PHP_SELF'] === '/wp-admin/admin-ajax.php' ){ | |
add_action( 'init', create_function( '', 'new WPide();' ) ); | |
} |
This file contains hidden or 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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 | |
$args = array( | |
'posts_per_page' => 5, | |
'order' => 'ASC', | |
'orderby' => 'title', | |
'meta_query' => array( | |
array( | |
'key' => '', | |
'value' => '', |
This file contains hidden or 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 dap_responsive_img_caption_filter( $val, $attr, $content = null ) { | |
extract( shortcode_atts( array( | |
'id' => '', | |
'align' => '', | |
'width' => '', | |
'caption' => '' | |
), $attr | |
) ); | |
This file contains hidden or 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 $format = get_post_format(); | |
if ( $format === false ) | |
$format = 'standard'; | |
get_template_part( 'formats/content', $format ); ?> |
This file contains hidden or 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
if ( is_single() && in_category( 'recent-events' ) ) { | |
$content = get_the_content(); | |
echo $content; | |
} else { | |
// Main loop content goes here | |
} |
This file contains hidden or 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 ( $recent->have_posts() ) : while ( $recent->have_posts() ) : $recent->the_post(); | |
// Pull the URL from the_content() | |
$link = esc_url( get_the_content() ); | |
// Check if it's a properly formed URL, append http:// if not. Don't want user to struggle here | |
if ( ! preg_match('/^http:\/\//', $link ) ) | |
$link = 'http://' . $link; | |
// Setup args for our oEmbed |
This file contains hidden or 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 ( ! wp_is_large_network( 'users' ) ) { | |
$num = '<a href="' . network_admin_url('users.php') . '">' . $num . '</a>'; | |
$text = '<a href="' . network_admin_url('users.php') . '">' . $text . '</a>'; | |
} else { | |
$num = '<a href="' . network_admin_url('users.php') . '">10,000+</a>'; | |
$text = '<a href="' . network_admin_url('users.php') . '">' . $text . '</a>'; | |
?> |
OlderNewer