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 | |
add_filter( 'hybrid_content_template', 'my_content_template' ); | |
function my_content_template( $template ) { | |
if ( is_front_page() ) { | |
$has_template = locate_template( array( 'content-feature.php', 'content/feature.php' ), false, false ); | |
if ( $has_template ) |
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 custom_read_more() { | |
return ' <a class="read-more" href="'.get_permalink(get_the_ID()).'">[…]</a>'; | |
} | |
function excerpt($limit) { | |
return wp_trim_words(get_the_excerpt(), $limit, custom_read_more()); | |
} | |
/* | |
use excerpt(25) or whatever length you would like |
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
<% | |
dim thismonth, thisday, thisyear, location, filelename, ver, extention, abolutespath | |
thismonth= datepart("m", now()) | |
thisday=datepart("d", now()) | |
thisyear=datepart("yyyy",now()) | |
location="\\full-path-to-your-backup-folder\backup\" | |
filename="dbBackup-" & thismonth & "-" & thisday & "-" & thisyear & "_" | |
ver=1 |
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 | |
// Include WordPress | |
define('WP_USE_THEMES', false); | |
require('/website-root-directory/wp-load.php'); | |
?> |
NewerOlder