Use this instead:
Concatenate the html then return it.
function check_my_login( $atts)
{
$html="<form action="" name="" method="post" enctype="multipart/form-data">";
$html .= '<div class="form-group">';
$html .= '<label for="description">Project Description</label>';
$html .= '<textarea name="p_description" placeholder="Project Description" class="form-control">';
if(isset($_POST['p_description']) && $_POST['p_description'] != ''){
$html .= $_POST['p_description'];
}
$html .= '</textarea>';
$html .= '</div>';
$html .= '<div class="form-group">';
$html .= '<label>Project Attachment</label>';
$html .= '<input type="file" name="p_attachment">';
$html .= '</div>';
$html .= '</form>';
return $html;
}
add_shortcode( 'kentaUser', 'check_my_login' );
Related Posts:
- Autogenerate wordpress shortcodes using array?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- How to add inline css/js inside a shortcode
- wordpress plugin is not activating from widget
- creating html reusable blocks via shortcodes
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Shortcode Attributes to Return different $_POST
- strange shortcode error: does shortcodes requires any dependency?
- The function called on the wp head hook becomes null
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- How to get next day date of a specific day
- How to add a shortcode button to the TinyMCE editor?
- Where do I put the code snippets I found here or somewhere else on the web?
- Where is the best place to use add_filter
- Custom media upload content for inserting custom post shortcode
- Checking if an attribute exists in a shortcode
- When can you get current page ID and initialize hooks right after?
- Customizing subject in comment notification e-mails
- enqueue script only if it is not already enqueue
- Common functionality between my own plugins
- How to Loop Plugin Option Field Set?
- Using the ‘draft_to_publish’ hook (post status transition)
- How to handel multiple checkbox field in the admin settings page with Settings API
- Why does including a file in theme’s functions.php not work?
- wp_insert_user – how to send verification email before logging in
- Editor access to plugin settings
- How can I limit functionality in one version of a plugin?
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- Execute a function using ajax
- Shortcode under a Shortcode Multiple times Possible?
- Pass $this to function nested in another public function of the same class
- Add Top-Level Menu that opens URL
- shortcode doesn’t work
- How to remove action from plugin?
- Use functionality of 2 wordpress plugins
- What is the function to get plugin base url in multisite?
- Can a plugin add to header/footer/body content?
- Fatal error: Class not found in
- Is it possible to add an action to the currently running action?
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- Action on post publish
- How to call bind function in wordpress actions or hooks
- How to prevent action in ajax request, when in admin side?
- How to get variables from fucntion.php to my plugin files
- How to include code into functions.php file via a plugin
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- add action for displaying posts using a shortcode
- May i Use ShortCode in Template?
- ‘wp_login’ action hook not working with wp-login.php file
- Demystifying and understanding shortcode nomenclature
- How to add class in plugin only for network site?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- plugin development: problem with functions
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Prevent shortcode from being wrapped in tags
- How to stop or remove an action being called inside a function of an extended class
- Any hook for pre-plugin-update -either bulk or single plugin update
- Input with spaces in Shortcode attributes overwritten by defaults
- Allow users of my plugin to define their own shortcode rather than use mine?
- Edit Yoast SEO breadcrumbs output [closed]
- Adding Shortcode to Text Widget
- When to load auto-login code?
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- How to get all of the activate_plugin action parameters?
- Display post lists in 2nd paragraph
- Using a post-signup hook to get user details
- Calling plugin function inside custom plugin for onclick event
- Making a Template for a CPT created by a plugin
- How to check current user before all actions and filters?
- Single API call exposed via shortcode with params
- Get Time Taken By Each Action Hook in WordPress
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Custom plugin init action causing general slowness
- Conditional attributes and logic per product category
- Creating shortcodes in plugin
- How to create a custom shortcode based on the layout?
- WordPress get_avatar function not correct working
- Which file of wordpress manage plugins functionalities?
- Difference and examples of esc_attr__() and esc_attr_e()
- Create shortcode to echo javascript
- Add action to fire when a published post is updated
- List the authors that have written posts in a category
- Namespaced shortcode?
- How to pass variables to a function argument using add_action [duplicate]
- Check if variable is set in filter
- execute function after one completed
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- Submit Form data to another page via Ajax (WordPress Way)
- Why am I unable to load scripts in head in plugin?
- WordPress checkbox and Illegal string offset
- Does using `add_action( ‘init’…` cause performance issues?
- How to add a dvi tag to a shortcode then change a generated text using jQuery