Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 ?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer
    
but how to determine for selective posts ? as featured ? –  Nisha_at_Behance Jul 27 '12 at 10:32
    
got it it's so simple.... same as featured post !! –  Nisha_at_Behance 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/

share|improve this answer
    
custom metaboxes will do this ? –  Nisha_at_Behance Jul 27 '12 at 8:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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