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.

Continue Reading
7 Comments

7 Comments

  1. Septian

    March 28, 2009 at 6:16 am

    Nice hack Frosty, it works… 😀 btw, what’s the purpose of this new meta box?
    As far as I know, image function meta box already added (Thumbnail and Medium) right?

    Septian´s last blog post..iPhone 3G now available on Indonesia: Good or Bad News?

    • Austin

      March 28, 2009 at 2:12 pm

      I use it to generate dynamic resized images with a image php file I’ve got. Think if you need to add a simple meta box to add to custom fields.

  2. Miccky

    April 8, 2009 at 4:15 pm

    Hi!
    I like this theme.But I don’t know how to use it ,can you give me some help?
    micckysun@gmail.com
    I am from China , English is not so good !

    • Austin

      April 10, 2009 at 11:53 am

      Please feel free to use my contact form for some more help.
      Alternatvily you can contact me at austin [at] frostywebdesigns.com and I can contract some work for you.
      🙂

  3. Searcher

    May 21, 2009 at 12:55 am

    Hi Austin. I find this code very usefull for me. Can ask you in future to create something for me especially and for my need. It will be paid of course.

    • Austin

      May 21, 2009 at 7:45 am

      Absolutely, feel free to send me and email through the contact form, or through my portfolio site.

  4. shawn

    October 22, 2009 at 7:02 pm

    Using Hybrid on a site, and fairly a newbie overall at WP, but having a helluva time locating wp_list_pages to modify the header.

    Can you tell me where its located?
    .-= shawn´s last blog ..My new site! =-.

You must be logged in to post a comment Login

Leave a Reply

Premium

Papercut

Published

on

Papercut is a grungy news theme with beautiful alternating stylesheets, built-in widgets, and layout control via a hand crafted theme options page. It’s the perfect out-of-the-box solution to give your website a stylish new look. Irrespective of your preferred style; Papercut will have one you like.

Unique Features

These are some of the more unique features that you will find within the theme:

  • Five eye-catching theme styles to pick from that include the default, newspaper, red print, wood and floral prints.
  • An unique homepage layout, with a beautiful grid structure that keeps your content looking fresh and appealing.
  • Beautiful comment styling and unobtrusive advertising banner placements.
  • A completely widgetized sidebar with custom widgets included in the theme packaging. No third party widgets required.
  • Integrated Banner Management widget to display banner ads of your choice site-wide;

Standard Features

These features are probably just as special as the one’s above, but you’ll find these standard features within most of our wide range of themes:

  • Integrated Theme Options (for WordPress) to tweak the layout, colour scheme etc. for the theme;
  • Automatic Image Resizer, which is used to dynamically create the thumbnails and featured images;
  • Custom Page Templates for Archives, Sitemap & Image Gallery;
  • Built-in Gravatar Support for Authors & Comments;
  • Integrated Banner Management script to display randomized banner ads of your choice site-wide;

Available Color Schemes

Please note that the theme package includes all of these color schemes and with the Theme Options back-end, it is possible to change the theme’s color scheme (between these) whenever you see fit.

WooThemes - Finally a themes club that is here to stay

Continue Reading

Premium

WP Realtor

Published

on

The Ultimate WordPress Real Estate theme with custom developed plugins, single and multiple agents, extensive listing features and personalized search.

Bel Air Theme

  • Beautiful, elegant themes
  • Five colors included: sea blue, red, navy blue, gold and black
  • Agent can publish picture with biography
  • Top-Level link to add property listing
  • Easily publish your home details (including bathrooms, bedrooms, images and lots more)
  • “No Custom Fields” to hassle with when posting property details and images
  • Images are auto thumb-nailed and display full-size with a cool pop-up slide-show
  • Featured properties rotate on home page with agent
  • Cool Property Search Options – includes drop downs and search box
  • Agents page to display biography and properties for sale
  • Payment Calculator
  • Ad Banner Management
  • 100+ hours into programming, designing and preparing these themes for you.

This is the info taken from the Plug and Press Bel Air Theme site.

Price:

Single Use: $99 $79.95 Buy Now!
Multiple Use: $179.95 Buy Now!
Developers: $279.95 Buy Now!

Continue Reading

Premium

CelebrityPress Fashion

Published

on

CelebrityPress Fashion 14

Celebrity Press is a sexy premium WordPress theme ideal for running a Gossip / Celebrity Online Magazine website. The package includes two colors and 5 different samples with two plain, and three pattern background themes as well as one style to upload your own logo. The theme also has an Options Interface where you can manage your own advertisement campaign, and a video rotator allowing you to simply copy and paste the share code from video sites such as YouTube, Daily Motion, and Metacafe.

Table of Contents

Features:

  • 2 3 Colors (Black, White & Fresh + Blank Wire Frame)
  • 2 3 background samples
  • Add your Adsense or Image Link Code
  • Turn all-or-individual banners on/off
  • Quick Post – No need to put an image
  • Image Auto Resizer
  • Random Video Rotator (copy/paste code)
  • Flickr Integration
  • Build your Own Menu from the Theme Options
  • Photo Gallery
  • Drop Down Menu (Build your Own)
  • Customized Error page with sitemap
  • Ad your own Logo and Styles Easily
  • Unique Post Randomizer
  • Gravatar Support
  • Main News Section
  • Widget Ready
  • Customized Archives and Search Pages
  • Stylesheet switcher
  • Feedburner Integration
  • Extensive help and tutorial included
  • IE6, IE7, Firefox, Safari and Opera compatible
  • XHTML and CSS Valid

Price:

Standard: $39.95 Buy Now!
Premium: $59.95 Buy Now!
Deluxe: $99.95 Buy Now!

CelebrityPress Fashion 20
CelebrityPress Fashion 40

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Nancy Pelosi net worth.

Nancy Pelosi net worth.

What is Nancy Pelosi’s net worth? Nancy Pelosi is an American politician who has a net worth close to 120 million dollars. In one of her recent disclosure of wealth, Nancy and Paul Pelosi, who is her husband, estimated that their total personal wealth falls somewhere in the range of $43 million to $202 million. […]

Faze banks Net Worth: How Rich is Faze Banks Actually?

Faze banks Net Worth: How Rich is Faze Banks Actually?

Ricky Banks, who is better known as Faze Banks, is an American Youtuber and the co-owner of the most subscribed gaming group of Call of Duty called Faze Clan which has more than 7 million subscribers. Moreover, his own channel has close to 5.5 million subscribers. Moreover, he is also credited for the formation of […]

Steve Easterbrook Net Worth: How Rich is the Former McDonald’s CEO?

Steve Easterbrook Net Worth: How Rich is the Former McDonald’s CEO?

Steve Easterbrook is an English business executive. He is the former chief executive of McDonald’s where he served from March 2015 to November 2019. As of 2019, Steve Easterbrook net worth is estimated to be $40 million. Easterbrook was born on August 6, 1967, in Watford, England. He went to Watford Grammar School for Boys. […]

Mattia Polibio Height, Net Worth, Biography & Other Facts

Mattia Polibio Height, Net Worth, Biography & Other Facts

Mattia Polibio Biography Mattia Polibio is a young TikTok star who has been able to successfully garner well over 2 million followers on his profile with close to 120 million likes on his videos so far because of his videos that include duets as well as lip-syncs of popular songs. Poliobio was born on May […]

Trending