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 echo wp_count_posts('post')->publish; ?> |
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
global $wp_query; | |
$postid = $wp_query->post->ID; | |
echo get_post_meta('4', 'qofday', true); | |
wp_reset_query(); |
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
add_action( 'wp_footer', 'tcb_note_server_side_page_speed' ); | |
function tcb_note_server_side_page_speed() { | |
date_default_timezone_set( get_option( 'timezone_string' ) ); | |
$content = '[ ' . date( 'Y-m-d H:i:s T' ) . ' ] '; | |
$content .= 'Page created in '; | |
$content .= timer_stop( $display = 0, $precision = 2 ); | |
$content .= ' seconds from '; | |
$content .= get_num_queries(); | |
$content .= ' queries'; | |
if( ! current_user_can( 'administrator' ) ) $content = "<!-- $content -->"; |
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
define( 'AUTOMATIC_UPDATER_DISABLED', true ); |
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
remove_filter('pre_term_description', 'wp_filter_kses'); |
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 | |
$paragraphAfter= 7; //display after the first paragraph | |
$content = apply_filters('the_content', get_the_content()); | |
$content = explode("</p>", $content); | |
for ($i = 0; $i <count($content); $i++ ) { | |
if ($i == $paragraphAfter) { ?> | |
<!-- Place Ad Content Here --> | |
<?php } | |
echo $content[$i] . "</p>"; | |
} ?> |
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 (rand(1, 100) > 50) { ?> | |
<?php } else { ?> | |
<?php } ?> |
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
delete from cache_filter; | |
delete from cache_menu; |
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
<ul> | |
<?php if(function_exists('fetch_feed')) { | |
include_once(ABSPATH . WPINC . '/feed.php'); | |
$rssfeed = get_post_meta($post->ID, 'rssfeed', true); | |
$feed = fetch_feed($rssfeed); | |
$limit = $feed->get_item_quantity(10); | |
$items = $feed->get_items(0, $limit); | |
} | |
if ($limit == 0) echo '<div>The feed is either empty or unavailable.</div>'; |
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
add_filter('login_errors',create_function('$a', "return null;")); |
NewerOlder