{"id":2651057,"date":"2012-03-26T14:52:03","date_gmt":"2012-03-26T14:52:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-shortcode-manager\/"},"modified":"2016-08-20T05:47:52","modified_gmt":"2016-08-20T05:47:52","slug":"plugin-shortcode-manager","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-shortcode-manager\/","title":{"rendered":"[Plugin: Shortcode Manager]"},"content":{"rendered":"<p>Hi. I&#8217;m using the &#8220;Shortcode Manager&#8221; plugin to create shortcodes from php code generated by the &#8220;New Contact Info&#8221; plugin. I want to use the shortcodes in the &#8220;Contact Form 7&#8221; plugin to auto-fill text fields for users who are already logged in. <\/p>\n<p>For example, one of the fields is &#8220;postcode&#8221;. The user has filled out their postcode in a custom profile field created by the &#8220;New Contact Info&#8221; plugin. Then when the user goes to the &#8220;contact us&#8221; page all the details they have already submitted should auto-fill in the contact form. &#8220;Contact Form 7&#8221; allows you to auto-fill text fields other than the defaults (first name, last name, email, etc) by using its &#8220;dynamic text extension&#8221;. Using this extension you can insert shortcodes that will auto-fill text fields.<\/p>\n<p>The shortcode created by &#8220;Shortcode Manager&#8221; works when I put it into &#8220;Contact Form 7&#8243;, but next to the auto-fill value is: &lt;div class=&#8221;shortbus&#8221;&gt;&lt;\/div&gt;. So it appears: NU4 1PQ&lt;div class=&#8221;shortbus&#8221;&gt;&lt;\/div&gt;. I want to remove &lt;div class=&#8221;shortbus&#8221;&gt;&lt;\/div&gt; so that the text field just shows the auto-fill value NU4 1PQ.<\/p>\n<p>The php code generated the &#8220;New Contact Info&#8221; plugin is: &lt;?php the_author_meta(&#8220;postcode&#8221;, $current_author-&gt;ID); ?&gt;<\/p>\n<p>The shortcode created by the &#8220;Shortcode Manager&#8221; plugin is: [sb name=&#8221;user_postcode&#8221;]<\/p>\n<p>Please note that when using the &#8220;Contact Form 7 dynamic text extension&#8221; it requests that you replace the [] with &#8220;&#8221; and the &#8220;&#8221; with &#8221;. So the code in the &#8220;Contact Form 7&#8221; form is: [dynamictext Postcode &#8220;sb name=&#8217;user_postcode'&#8221;].<\/p>\n<p>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.<\/p>\n<p>Thanks in advance for your help.<\/p>\n<p>Regards,<br \/>\nD<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/shortbus\/<\/p>\n","protected":false},"template":"","class_list":["post-2651057","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2651057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2651057\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2651057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}