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 the entry header markup (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
//* Remove the entry title (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
//* Add the entry header markup and entry title before the content on all pages except the front page | |
add_action( 'genesis_before_content', 'jw_add_entry_header' ); | |
function jw_add_entry_header() |
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_shortcode( 'post_custom_tax', 'jw_post_custom_taxonomy_shortcode' ); | |
/** | |
* Produces the custom taxonomy terms links list. | |
* | |
* Supported shortcode attributes are: | |
* taxonomy (taxonomy to list, default is category), | |
* after (output after link, default is empty string), | |
* before (output before links, default is 'Filed Under: '), |
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 | |
/** | |
* Recent Custom Posts | |
* @author Jacob Wise | |
* @link http://swellfire.com/code/recent-custom-posts | |
* | |
* @param string $post_type | |
* @param int $numberposts | |
* @echo string $output |
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
/** | |
* | |
* Filter Yoast SEO Metabox Priority | |
* @author Jacob Wise | |
* @link http://swellfire.com/code/filter-yoast-seo-metabox-priority | |
* | |
*/ | |
add_filter( 'wpseo_metabox_prio', 'jw_filter_yoast_seo_metabox' ); | |
function jw_filter_yoast_seo_metabox() { | |
return 'high'; |
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 default description column from category | |
* | |
*/ | |
function jw_remove_taxonomy_description($columns) | |
{ | |
// only edit the columns on the current taxonomy, replace category with your custom taxonomy (don't forget to change in the filter as well) | |
if ( !isset($_GET['taxonomy']) || $_GET['taxonomy'] != 'category' ) | |
return $columns; |
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 jw_admin_scripts() { | |
wp_enqueue_script( 'adminscripts', get_stylesheet_directory_uri() . '/assets/js/admin.min.js', array('jquery'), NULL, true ); | |
} | |
add_action( 'admin_enqueue_scripts', 'jw_admin_scripts' ); |
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
(function($) { | |
$('#tag-description').closest('.form-field').remove(); | |
$('#description').closest('.form-field').remove(); | |
})(jQuery); |
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
.rpwe-block { | |
ul { | |
list-style: none !important; | |
margin-left: 0 !important; | |
padding-left: 0 !important; | |
} | |
li { | |
border-bottom: 1px solid #eee; | |
margin-bottom: 10px; |
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('json_api_encode', 'json_api_encode_acf'); | |
function json_api_encode_acf($response) | |
{ | |
if (isset($response['posts'])) { | |
foreach ($response['posts'] as $post) { | |
json_api_add_acf($post); // Add specs to each post | |
} |
OlderNewer