I don’t see any issue with the OOP code that would cause it not to work.
I think the problem is with the shortcode itself. I don’t believe shortcodes can have spaces. Show Form
is not a valid shortcode name. [Show Form]
would be parsed as as a shortcode named Show
with an attribute Form
.
The conventional format for this shortcode would be show_form
.
Related Posts:
- PHP error with shortcode handler from a class
- How to call a function from a shortcode function in an oop plugin
- Plugin Form Submission Best Practice
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Using a plugin class inside a template
- How to create a flexible abstraction for WP_Query?
- What is the correct way to build a widget using OOP
- Optimize shortcode callbacks
- How to make method from plugin available in theme?
- How would I create a plugin for my shortcodes?
- Using OOP plugin’s methods throughout the website
- Single Responsibility Principle and WP Classes
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- Are shortcodes case-sensitive?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- How Can I Add a Filter to Class Instance Only?
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- The ideal place for storing persistent PHP objects
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How do I make specific plugin functionality apply to different sites in a network?
- Plugin Architecture/Design Pattern – is better to use a private Observer/Mediator Pattern for plugin subclasses or WP add_action?
- Shortcodes, output buffering, and WordPress functions
- Filter on the_content ignores shortcodes
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Get returned variable from a function to add_shortcode function
- Using a front controller in a WordPress plugin, any suggestions?
- What is rich_editing?
- Why is my shortcode not working
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- On plugin deactivation hide its shortcode
- set_sale_price in WooCommerce [closed]
- Can’t get JS code to work with shortcode
- add_shortcode is not working [duplicate]
- How can I render shortcode so that its not cached by Caching plugins?
- Is it possible to delay execution of shortcode output callback?
- Processing shortcodes in groups (separated by line breaks)?
- WordPress Ajax callback function from plugin – OOP
- How do you render_callback for register_block_type to a method in another class?
- How do I write a shortcode that opens and closes?
- Using a Shortcode to Replace Themes Stylesheet?
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- Registering and using actions which return results in a Plugin class
- Advice on plugin structure
- Applying OO patterns and principles to plugin development
- Gutenberg Block showing invalid content on edit
- Storing product price data in the database
- What is the best way to embed an JS App in a WordPress Page?
- What is the proper way to include Bootstrap when executing a shortcode
- Auto gallery from folder contents
- Secure Pages Best Practice
- Adding option to Gallery shortcode
- add_shortcode() not working inside of function
- Plugin Architecture Question: How to avoid using transients
- What is the proper method of using global $post?
- Asynchronously render shortcodes in TinyMCE visual editor
- Custom login doesn’t work properly
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Run Shortcode of post’s custom field in functions.php / Plugin
- Shortcode returning localized HTML part
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- Dynamically creating classes for Widget API
- Enumerating shortcode attributes in JavaScript
- Wrap text around shortcode
- wp_nonce_field displaying twice
- WordPress class, using add_action to call member function does not work
- How to handle shortcodes through plugin
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Remove an action by extending class and replacing it
- Using OOP inside a Plugin – Is it allowed?
- Automating the process of shortcode generation in a plugin – how is it done?
- A question about add_action()
- WordPress plugin development OOP style
- Create Widget or Enable Shortcodes in Sidebar
- shortcode executed in the page editor
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- How to make my shortcode load scripts and styles, from within the plugin?
- How to display the categories on page using shortcode?
- Shortcode conflicts
- How to create ShortCode
- How to display the specific post content by using POST ID
- How to output functions from plugin inside theme
- add_filter img_caption_shortcode not implemented
- shortcode tags not working in do_shortcode
- OOP plugin not working
- How to insert HTML/CSS/JS into my iframe plugin?
- Including template in shortcodes
- Form submission to another page returning 404 error [duplicate]
- Passing values between enclosing and enclosed shortcodes
- post content and shortcode content displaying out of order
- Font size of HTML content
- Cannot output plugin twice with shortcode
- Paragraph Tags removed when contents are only a shortcode
- WPGut – Updating failed and shortcode?
- Bad request 400 using class based files