`# ๐ How to Add a Widget to a Page (Code View)
<div class="full-width-bg">[widget=widgetname]</div>
SELECT * FROM form_fields WHERE form_name = 'form_name' ORDER BY field_order ASC;
Convert the following list of labels into a comma-separated string using this format:
slugified_key=>Label,
where:
slugified_keyis all lowercase, spaces replaced with underscores, and special characters removedLabelis the original string with standard capitalization
buy_one_get_one=>Buy One Get One,free_shipping=>Free Shipping,...
item1, item2, etc
<div class="well">
<?php if (!empty($post['custom_business_name'])) { ?>
<p><strong>Business Name:</strong> <?php echo $post['custom_business_name']; ?></p>
<?php } ?>
<?php if (!empty($post['custom_email'])) { ?>
<p><strong>Contact Email:</strong> <?php echo $post['custom_email']; ?></p>
<?php } ?>
<?php if (!empty($post['custom_phone'])) { ?>
<p><strong>Contact Phone:</strong> <?php echo $post['custom_phone']; ?></p>
<?php } ?>
<?php if (!empty($post['post_start_date'])) { ?>
<p><strong>Start Date:</strong> <?php echo $post['post_start_date']; ?></p>
<?php } ?>
<?php if (!empty($post['post_expire_date'])) { ?>
<p><strong>End Date:</strong> <?php echo $post['post_expire_date']; ?></p>
<?php } ?>
<?php if (!empty($post['post_promo'])) { ?>
<p><strong>Promo Code:</strong> <?php echo $post['post_promo']; ?></p>
<?php } ?>
<?php if (!empty($post['post_url'])) { ?>
<p><strong>Redemption Link:</strong>
<a href="<?php echo $post['post_url']; ?>" target="_blank"><?php echo $post['post_url']; ?></a>
</p>
<?php } ?>
</div>
%%%form_external_link_tip%%%%%%form_optional_placeholder%%%To maintain clean and maintainable code while preserving layout and visual appearance, apply the following rules:
Remove empty background <div> blocks
<div class="absolute inset-0 ..."> that has no content or background image.Remove unnecessary <br> tags
<div> contains only <br>, delete the <br>.<div> is just an empty overlay, remove it.Remove unused attributes
data-original-content and contenteditable="false" attributes. around <span> elements in buttons or links.Remove dark mode classes
dark:* classes (e.g., dark:bg-*, dark:text-*, dark:border-*).Replace inline SVG background data URLs with inline <svg> elements
<svg> element.Remove unnecessary wrapper <div> elements
<div>s used only for hover overlays, unless essential.Reduce stacked spacing if excessive
mb-*, py-*, pt-*, etc., where large gaps exist.data_postspost_title: Title of the postpost_content: Body/contentpost_image: Featured imageImage Support: One featured image. More can be added via the content editor.
users_portafolio_groupsgroup_name: Title of the postgroup_desc: Content/descriptionpost_image: Comma-separated list of imagesImage Support: Supports galleries with multiple images.`