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 | |
include "wp-load.php"; | |
$posts = new WP_Query('post_type=any&posts_per_page=-1&post_status=publish'); | |
$posts = $posts->posts; | |
header('Content-type:text/plain'); | |
foreach($posts as $post) { | |
switch ($post->post_type) { |
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
remove_action('wp_head', 'print_emoji_detection_script', 7); | |
remove_action('wp_print_styles', 'print_emoji_styles'); |
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
<img src=”https://xxx.salesforce.com/servlet/servlet.ImageServer? | |
id=00000000000pwc&oid=00DD0000000FHaG&lastMod=000000000000" alt=”header background” | |
height=”220" width=”350"/> |
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 | |
//* Do NOT include the opening php tag | |
//* Load Google Fonts | |
add_action( 'wp_enqueue_scripts', 'ab_load_google_fonts' ); | |
function ab_load_google_fonts() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700|Neuton:400', array(), CHILD_THEME_VERSION ); |
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 | |
//* Do NOT include the opening php tag | |
//* Add support for structural wraps | |
add_theme_support( 'genesis-structural-wraps', array( | |
'header', | |
'nav', | |
'subnav', | |
'site-inner', | |
'footer-widgets', | |
'footer' |
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 | |
//* Do NOT include the opening php tag | |
//* Add entry image before entry title | |
add_action( 'genesis_entry_header', 'ab_entry_image', 1 ); | |
function ab_entry_image() { | |
if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) ) | |
return; | |
if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'entry-image' ) ) ) ) { | |
printf( '<a href="%s" rel="bookmark"><img class="aligncenter entry-image" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) ); |
NewerOlder