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(get_post_meta($post->ID, 'single-bottom-ad', true)): ?> | |
<div id="single-bottom-ad"> | |
<?php echo get_post_meta($post->ID, 'single-bottom-ad', true); ?> | |
</div> | |
<?php endif; ?> |
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 (is_single(array(459,16,21))) { ?> | |
<!-- put code here --> | |
<?php } else { ?> | |
<!-- put code here --> | |
<?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
<?php | |
echo preg_replace('/<img[^>]+./','',get_the_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
<script> | |
// This adds 'placeholder' to the items listed in the jQuery .support object. | |
jQuery(function() { | |
jQuery.support.placeholder = false; | |
test = document.createElement('input'); | |
if('placeholder' in test) jQuery.support.placeholder = true; | |
}); | |
// This adds placeholder support to browsers that wouldn't otherwise support it. | |
$(function() { | |
if(!$.support.placeholder) { |
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( 'the_content', 'wpautop' ); | |
add_filter( 'the_content', 'wpautop' , 99); |
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
/** Preventing Core, Plugin and Theme Auto Updates. */ | |
define( 'DISALLOW_FILE_EDIT', true ); | |
define( 'DISALLOW_FILE_MODS', 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 WORDPRESS VERSION TEXT */ | |
function wpbeginner_remove_version() { | |
return ''; } | |
add_filter('the_generator', 'wpbeginner_remove_version'); |
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;")); |
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>'; |