Wrap fields in tag

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…


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

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.4.1 is now available

27th May 2024

This update addresses backwards compatibility issues that were introduced in the previous update. There were some edge cases where PHP 7 had issues and it didn’t work at all on PHP 5.6. We have now changed it so that the PHP 8 compatibility changes will now only affect PHP 8 and will be more thorough… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

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.

Three AM