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 | |
/** | |
* Style pagination to look like Genesis. | |
* | |
* @version 1.0.0 | |
* | |
* @author Mike Hemberger @JiveDig | |
* | |
* @link https://gist.github.com/JiveDig/b9810ba4c322d7757993159ed9ccb61f |
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 | |
/** | |
* Disable sticky header and shrink header from Mai Pro. | |
* | |
* @param array The existing body classes. | |
* | |
* @return array Modified classes. | |
*/ | |
add_filter( 'body_class', 'prefix_disable_mai_sticky_shrink_header', 30 ); |
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 | |
$favorite_id = wp_insert_post( array( | |
'post_author' => 1, | |
'post_excerpt' => '', | |
'post_status' => 'publish', | |
'post_title' => '', | |
'post_type' => 'favorite', | |
'_thumbnail_id' => '', | |
'meta_input' => array( |
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
[ | |
{ | |
"key": "group_59c02d79966e4", | |
"title": "Tabbed Content", | |
"fields": [ | |
{ | |
"key": "field_59c02db106f90", | |
"label": "Tabs", | |
"name": "tabs", | |
"type": "repeater", |
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 | |
// Force the site title to use 'p' whenever an 'h1' would be used. | |
add_filter( 'genesis_seo_title','prefix_force_p_site_title_wrap', 99, 3 ); | |
function prefix_force_p_site_title_wrap( $title, $inside, $wrap ) { | |
$title = str_replace( '<h1', '<p', $title ); | |
$title = str_replace( '</h1>', '</p>', $title ); | |
return $title; | |
} |
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 | |
/** | |
* Get the specified metadata value for the term or from | |
* one of it's parent terms. | |
* | |
* @param WP_Term $term Term object | |
* @param string $key The meta key to retrieve. | |
* @param bool $check_enabled Whether to check if custom archive settings are enabled. | |
* |