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
- 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?
- Single Responsibility Principle and WP Classes
- Are shortcodes case-sensitive?
- 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?
- Filter on the_content ignores shortcodes
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- set_sale_price in WooCommerce [closed]
- add_shortcode is not working [duplicate]
- How can I render shortcode so that its not cached by Caching plugins?
- Processing shortcodes in groups (separated by line breaks)?
- How do you render_callback for register_block_type to a method in another class?
- Using a Shortcode to Replace Themes Stylesheet?
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- Advice on plugin structure
- What is the best way to embed an JS App in a WordPress Page?
- Auto gallery from folder contents
- Secure Pages Best Practice
- 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”
- Enumerating shortcode attributes in JavaScript
- Wrap text around shortcode
- wp_nonce_field displaying twice
- 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
- 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
- How to insert HTML/CSS/JS into my iframe plugin?
- Including template in shortcodes
- Form submission to another page returning 404 error [duplicate]
- 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
- How to write a custom shortcode name book?
- By adding “?login – failed” code unable to access my dashboard
- How can I pass WP_Query results to a plugin?
- How can we stop showing short code in create or edit post section
- functions won’t fire after I converted my code from procedural code to OOP
- OOP development and hooks
- How to set a public variable in someone else’s plugin class
- Pass javascript result to shortcode executer function
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- How to Maintain url on form submit
- How do I make two shortcode use the same id and increment it when I use them multiple times?
- Shortcode from a plugin not working
- Caption Shortcode: what filter to change the image size?
- Object Oriented plugin, add action and variables
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- How to add conent (text) to Add New pages form of admin in WordPress
- Why function hooked using object are executing at all time?
- Identifying a Page Containing Shortcode at `init`
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- How to show custom taxonomy child posts through shortcode in WordPress
- add short code not working
- Loop output for custom plugin [solution found]
- Correct usage of scripts with shortcodes
- How to Pass ID through Short Code
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Shortcode attribute “title” doesn’t appear in $atts array
- WordPress simple ‘Hello World’ plugin – problems
- Shortcode rendered in preview, but empty in post
- How to display .ptm file in my WP site without JAVA
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Developing an IP lookup function using an API