Connect with us

Themes

Add additional meta boxes to Hybrid Theme

Published

on

At the time of writing this post I have Theme Hybrid as my parent theme, and am using a custom version of Hybrid News that Justin Tadlock offers to the public.

Well I want to tell you how you can add additional custom meta boxes to your child theme’s running the Hybrid Theme.

In your child function.php file just add the following to create a new post meta box:

/**
* Add additional post meta boxes
*
* by WPCult
*/
function wpcult_post_meta_boxes($meta_boxes) {
	$meta_boxes['image'] = array(
		'name' => 'image',
		'default' => '',
		'title' => __('Image:'),
		'type' => 'text',
		'show_description' => false,
		'description' => __('Please use a full size image, larger than 500px (this photo will dynamically re-size itself!'),
	);
	return $meta_boxes;
}
add_filter('hybrid_post_meta_boxes', 'wpcult_post_meta_boxes');

This will create a custom meta box called Image, and will create a custom field with the id of image.

Additionally you can create this on pages as well by copy/paste and replacing “post_meta_box” with “page_meta_box” every where inside the function.

Premium

Revolution Two: Church Theme

Published

on

Benefits include the Church theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and professional design services available by our list of recommended designers.

Revolution 2: Church Theme

Price:

Single License: $59.95 Buy Now!
Pro Plus All-Theme Package: $199.95 Buy Now!

Continue Reading

Premium

Revolution Two: Chrome Theme

Published

on

Benefits include the Chrome theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and professional design services available by our list of recommended designers.

Revolution 2: Chrome Theme

Price:

Single License: $59.95 Buy Now!
Pro Plus All-Theme Package: $199.95 Buy Now!

Continue Reading

Premium

Revolution Two: Black Canvas

Published

on

Benefits include the Black Canvas theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and professional design services available by our list of recommended designers.

Revolution 2: Black Canvas Theme

Price:

Single License: $59.95 Buy Now!
Pro Plus All-Theme Package: $199.95 Buy Now!

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Ashton Pienaar Net Worth: How Rich is the Below Deck Star?

Ashton Pienaar Net Worth: How Rich is the Below Deck Star?

Ashton Pienaar is a South African yacht deckhand and television personality best known for appearing on the television show “Below Deck”. As of 2019, Ashton Pienaar net worth is estimated to be $500,000. Ashton was born on June 16, 1989, in Johannesburg, South Africa. Unfortunately, we have no wide range of information regarding his early […]

Ondreaz Lopez Height, Age, Bio, Net Worth, Wiki & More

Ondreaz Lopez Height, Age, Bio, Net Worth, Wiki & More

Ondreaz Lopez is an American TikTok star who is known as one half of the Lopez Brothers throughout social media along with his younger brother named Tony Lopez. He has over 3.1 million followers on his personal Tik Tok profile having received more than 75 million likes for his videos. Ondreaz was born on April […]

DJ Drama Net Worth: How Rich is the American DJ Actually?

DJ Drama Net Worth: How Rich is the American DJ Actually?

Tyree Cinque Simmons, who is better known as DJ Drama, is an American DJ and record executive producer who is the co-founder of Generation Now that includes top artists such as Lil Uzi Vert and Jack Harlow. As of 2019, DJ Drama net worth is estimated to be around $12 million. Simmons was born on […]

David Dobrik’s Net Worth

David Dobrik’s Net Worth

David Dobrik’s Net Worth: Know Everything About Him In recent years, we have seen the rise of many YouTubers. Ever since the time the market started booming with new YouTubers, this new way of entertaining people has come to the limelight. Speaking of popular YouTubers, we simply cannot miss out on David Dobrik. He is […]

Trending