Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Need a custom shortcode attribute to emit a span tag.

$
0
0

Replies: 0

Howdy all,
I’ve been all over the internet trying to piece together this puzzle with various customizations and plugins, but I’m going around in circles now and need help. I would like to embed a contact form in a page with a shortcode like the following:
[contact-form-7 id="157" title="Rental Contact Form" rent="$1400"]

Now on my contact form I have an acceptance field where I would like to show the “rent” attribute value in the label:
[acceptance acceptance-income] Gross income of all applicants must be three times or more the monthly rent of [rent]. [/acceptance]

I realize there are multiple issues with what I am doing, such as requiring a custom attribute be added to the filter and of course nesting that “rent” code within the “acceptance” code. I am open to alternative methods of accomplishing this as well as suggestions to do it this way. Anything helps!

Thanks!

  • This topic was modified 13 minutes ago by dylanbaxter.

Viewing all articles
Browse latest Browse all 59525

Trending Articles