Created
May 5, 2021 20:33
-
-
Save BinaryMoon/d74fff8264854b8e21f27a42eccdc2ba to your computer and use it in GitHub Desktop.
Change Chronicle Featured 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
<?php | |
/** | |
* Plugin Name: Change Featured Content Properties | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change featured content properties | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: pdu | |
*/ | |
function chronicle_jetpack_init_featured_content() { | |
add_theme_support( | |
'featured-content', | |
array( | |
'featured_content_filter' => 'broadsheet_get_featured_posts', | |
'max_posts' => 4, | |
'post_types' => array( 'post', 'page', 'jetpack-portfolio' ), | |
) | |
); | |
} | |
add_action( 'after_setup_theme', 'chronicle_jetpack_init_featured_content', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment