[Plugin: Shortcode Manager]
-
Hi. I’m using the “Shortcode Manager” plugin to create shortcodes from php code generated by the “New Contact Info” plugin. I want to use the shortcodes in the “Contact Form 7” plugin to auto-fill text fields for users who are already logged in.
For example, one of the fields is “postcode”. The user has filled out their postcode in a custom profile field created by the “New Contact Info” plugin. Then when the user goes to the “contact us” page all the details they have already submitted should auto-fill in the contact form. “Contact Form 7” allows you to auto-fill text fields other than the defaults (first name, last name, email, etc) by using its “dynamic text extension”. Using this extension you can insert shortcodes that will auto-fill text fields.
The shortcode created by “Shortcode Manager” works when I put it into “Contact Form 7″, but next to the auto-fill value is: <div class=”shortbus”></div>. So it appears: NU4 1PQ<div class=”shortbus”></div>. I want to remove <div class=”shortbus”></div> so that the text field just shows the auto-fill value NU4 1PQ.
The php code generated the “New Contact Info” plugin is: <?php the_author_meta(“postcode”, $current_author->ID); ?>
The shortcode created by the “Shortcode Manager” plugin is: [sb name=”user_postcode”]
Please note that when using the “Contact Form 7 dynamic text extension” it requests that you replace the [] with “” and the “” with ”. So the code in the “Contact Form 7” form is: [dynamictext Postcode “sb name=’user_postcode'”].
I would like the author of the plugin or anyone else to get back and let me know if there is anything that can be done to solve this issue.
Thanks in advance for your help.
Regards,
D
- The topic ‘[Plugin: Shortcode Manager]’ is closed to new replies.