Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Tushar Imran imrantushar

🏠
Working from home
Block or report user

Report or block imrantushar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@imrantushar
imrantushar / latestposts-control.php
Created Dec 2, 2017 — forked from danielpataki/latestposts-control.php
Custom Theme Customization Controls
View latestposts-control.php
$wp_customize->add_control(
new WP_Customize_Latest_Post_Control(
$wp_customize,
'featpost_control',
array(
'label' => __( 'Select A Featured Post', 'mytheme' ),
'section' => 'header_section',
'settings' => 'featured_post',
'post_type' => 'page'
)
You can’t perform that action at this time.