I'm working on a news website. (wordpress.org)

I want to add a quote on the header with an image.

Please have a look at this image

For this I want to add a check box on the post publish section (post.php)

like this image

Please guide me on how to do this, should I use custom field or what?

should i try custom metaboxes... or custom post type ?


I think using CPT may not be necessary as we already have post formats. Trun on "Quote" post format and their you can add the quote, the image as featured image. And on the header section just query for the post format and show the latest one or use jquery if you like to have multiple on a slider.

You can use a post meta box/or excerpt for quote source/author/name, title for the quote preview title.

  • but how to determine for selective posts ? as featured ? Jul 27 '12 at 10:32
  • got it it's so simple.... same as featured post !! Jul 27 '12 at 10:36

You may not need to use custom post types ... you probably can use the EXCERPT field for the story and then you will need to do some development work to include this Quote with Image in your theme.

A simple approach is to install GLOBAL CONTENT BLOCKS and create the quote and image you want to use. I've used this with many digital agencies who want better control over the quote and image.

You can then edit your theme header.php or single.php to include the shortcode ... or do something a bit more advanced http://wpxpert.com/category/gcb-advanced-usage/


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.