Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Fields API – Choose tag for html output parameter

$
0
0
Dear Mark,

You can use any HTML divs, so you just need to use the "raw=true" parameter, it will be return the raw data stored in DB. Please take a look:

<h1>[types field=”my-textfield” raw='true']</h1>
<h2>[types field=”my-textfield” raw='true']</h2>
<h3>[types field=”my-textfield” raw='true']</h3>

To check if a field is empty you can use the [wpv-if] shortcode. Look this code below and read the document http://wp-types.com/documentation/user-guides/conditional-html-output-in-views/:

[wpv-if url="wpcf-url" evaluate="empty($url)"]
    No url given
[/wpv-if]

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.


Viewing all articles
Browse latest Browse all 20145

Trending Articles