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…

thoughts?

June 3, 2013 at 9:05 am #3165
traversal
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

Ability to deactivate licence domains within MasterPress account management

25th October 2024

We have just rolled out an account management feature which allows licence holders to have better control over the domains that use their licence key. From the MasterPress Account Management page, the list of Active Sites that use your licence now includes a function that allows you to remove a domain from your licence. Simply… 

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