Title: Shortcode not working
Last modified: May 27, 2021

---

# Shortcode not working

 *  Resolved [aguissa11](https://wordpress.org/support/users/aguissa11/)
 * (@aguissa11)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-not-working-388/)
 * hi i need help to publish a form the tutorial of php code in wsform page is broken
   
   and dosent show how to use the shortcode iam usin this snippet to put the form
   but no lucky
 *     ```
       add_action( 'end_wcfm_vendor_settings', function( $vendor_id ) {
       	global $WCFM;
       	$wcfm_vendor_company = get_user_meta( $vendor_id, 'wcfm_vendor_company', true );	
       	?>                                
       	<!-- collapsible -->
       	<div class="page_collapsible" id="wcfm_settings_form_additional_head">
       		<label class="fa fa-building"></label>
       		<?php _e('Company Info', 'wc-multivendor-marketplace'); ?><span></span>
       	</div>
       	<div class="wcfm-container">
       		<div id="wcfm_settings_form_additional_expander" class="wcfm-content">
       			<h2><?php _e('Company Overview', 'wc-multivendor-marketplace'); ?></h2>
       			<div class="wcfm_clearfix"></div>
       			    <?php do_shortcode('[ws_form id="4"]'); ?>
       		</div>
       	</div>
       	<!-- end collapsible -->
       	<?php
       }, 50, 1 );
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mark Westguard](https://wordpress.org/support/users/westguard/)
 * (@westguard)
 * [5 years ago](https://wordpress.org/support/topic/shortcode-not-working-388/#post-14492582)
 * Thanks for letting us know about the code issue in the WS Form knowledge base.
   We’ve fixed the code examples there.
 * I believe you also sent us a support ticket which we have also responded to. 
   If you have any further questions simply respond to the ticket and we’ll be happy
   to assist further!
 * Mark

Viewing 1 replies (of 1 total)

The topic ‘Shortcode not working’ is closed to new replies.

 * ![](https://ps.w.org/ws-form/assets/icon-256x256.jpg?rev=2834651)
 * [WS Form LITE - Drag & Drop Contact Form Builder](https://wordpress.org/plugins/ws-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ws-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ws-form/)
 * [Active Topics](https://wordpress.org/support/plugin/ws-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ws-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ws-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mark Westguard](https://wordpress.org/support/users/westguard/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/shortcode-not-working-388/#post-14492582)
 * Status: resolved