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.

For many of the sites I do for clients, the designers will make pages with small pieces of text in various places. For example, the home page will have a headline, a tagline, and a small box with contact information. The about us page will have a main body of text, but then also a side box with a past client quote in it. The contact us page will have a short blurb before the form.

The client wants the ability to edit all of these pieces of text later on. Are pieces such as these what widgets are supposed to be used for? If so, how would I allow the client to update the text later on? It seems messy to make a separate widget area for every static page, and it doesn't seem like this would allow the client to later edit the text very easily. Would concepts like custom post types, metaboxes, or shortcodes be useful here? I've tried many different methods but I'm not satisfied with any of them so far.

share|improve this question

4 Answers 4

up vote 7 down vote accepted

Typically you use widgets or custom post types but in reality these solutions can be unfriendly to clients. WordPress still revolves around the idea of a post based loop so doing traditional "content blocks" that you might find in other frameworks can be difficult. Fortunately there are plugins that are pretty good in this area.

I recommend checking out the following two:

http://wordpress.org/extend/plugins/multiple-content-blocks/
http://wordpress.org/extend/plugins/wp-blocks/

share|improve this answer
    
Oh excellent - this is exactly what I need. I knew there had to be an elegant solution to this problem. Thanks! –  dvcolgan Aug 17 '11 at 16:22

my solution to this problem: edit the template used to display said static page add code to load the content of a specific page or post using the ID create a page/post called something like Static Block for Foo page tell you client to edit that page for the specific block

I did it this way, because it creates the least torment for the user

If you need an example of how to accomplish this leave a comment

share|improve this answer
    
Not a bad idea but still should use custom post type and not the regular default post, you can even name it in the menu something like Newb Client Zone -->click here<-- –  Wyck Aug 17 '11 at 15:43

actually you would not need to have a custom post type specific here since I would use the page type for it.. like Wyc suggest. I have done it a couple of time and it works smootly. in the specific site side page you just do a custom query of a given page and 'print' the specific part. for organisational purpose what I usualy do is children pages.. for example on homepage I can 'print' the excerpt of the bio page as a starter.. all works with page system. very easy you can also use custom meta field if there is not major formatin on the additional boxes.

share|improve this answer

I have been using the WordPress Creation Kit for this purpose, specifically the Custom Fields Creator which allows you to create any type of meta boxes, including reapeatable ones, for posts, pages or custom posts.

share|improve this answer

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.