Wrap fields in tag

This topic contains 2 replies, has 2 voices, and was last updated by  Bart Dabek 4 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
June 2, 2013 at 11:14 pm #3162
Bart Dabek
Post count: 24

It would be really great to be able to specify what a field is wraped in by default… it would cut down on code quite a bit so we don’t have to do if checks each time to show data…

right now in order to eliminate additional code on html output you have to check if field exists… if we have a default wrap we can set on each field we can just simply echo out that field and eliminate the need for if statements within code…

thoughts?

June 3, 2013 at 9:05 am #3165
traversal
Post count: 206

I do like the concept – the only thing about it is that it can reduce the “purity” of the field data somewhat, in the case where you suddenly don’t want the wrapping tag. The API could account for that though in some way, by allowing you to call “value” and allowing the automatic string conversion to check if the field has a wrapper.

June 4, 2013 at 11:47 pm #3170
Bart Dabek
Post count: 24

Yep good idea to accomodate that… btw loving how clean the code is looking 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Latest From the Blog

MasterPress 1.1.4 now available

MasterPress 1.1.4 is now available. This release contains an important compatibility fix for WordPress 4.5 to allow correct detection of the taxonomy term editing screen. Without this fix, any custom fields you have attached to custom taxonomies will not be shown at all in the editing form. Note also that MasterPress will still detect the edit screen correctly in… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 3.4, MySQL 5, and PHP version 5.2.4.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Traversal