In simple words the problem with your approach is this:
The title kind of already is on his way from your server to the browser of your users when WordPress starts thinking about the content where your shortcodes are in. So this is too late.
Also if you look at what the is_page
function takes as a parameter…
Page ID, Page Title or Page Slug
… you see that a shortcode isn’t an option to use.
So if you are already familiar with using URL parameters why not use those directly in the filter above instead of trying to go through shortcodes?
Related Posts:
- What characters are allowed as a shortcode tag and how should they be sanitized?
- How to modify shortcode attributes with data from current post
- Redirect to another page using contact form 7? [closed]
- Filters on the_content with plugins, pages and shortcode
- shortcode which is introduced into entry the blog, and appears in side bar
- apply_filters to content but ignore shortcodes
- Strip shortcode from excerpt [duplicate]
- How to add a shortcode button to the TinyMCE editor?
- How to only hook on Single.php after content?
- how to include other plugins css files in a shortcode?
- Autogenerate wordpress shortcodes using array?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Shortcode under a Shortcode Multiple times Possible?
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- Very stubborn wp_register_script / add_action vs remove
- do_action and hook methods
- Remove action from a plugin class, forced to use global instance
- remove filter which calls a public static function
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- Determine plugin name from within plugin_action_links filter
- wp_specialchars and wp_specialchars_decode in a shortcode plugin
- Reposition Woocommerce Message
- How to remove xmlns on language_attributes()?
- Shortcode to generate and save password in a file
- Overriding Attributes values in Shortcode Plugins
- Demystifying and understanding shortcode nomenclature
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- add_filter comment_edit_redirect not working
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Edit default comments page in WP Admin
- Creating a plugin to sanitize comment and the url field before display only
- Adding Shortcode to Text Widget
- Get Time Taken By Each Action Hook in WordPress
- How to disable a plugin for certain page?
- get_post_title is not working on homepage
- WordPress user account activation
- How to create a custom shortcode based on the layout?
- How to change the name of the “edit my profile” link in the WordPress admin backend
- How do I apply style to each category of a list?
- Template filter for custom taxonomy terms
- Using add_action before add_filter on a plugin?
- Anyway to convert a plugin to become a shortcode?
- Displayed content disappears when adding attributes to shortcode
- override filter in a plugin
- remove_action not removing add_action from constructor
- Flipping Book PHP Code? Any experience?
- WPTouch – how to remove shortcodes or make shortcodes function
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Custom shortcode for displaying user based on a role parameter
- shortcode – multiple instances of same parameter name in one shortcode instance
- Function call in wordpress short code handler fails
- Add a function call after content automatically?
- How to use add_action for multiple instances of the same class
- How to Use the Filter “sidebar_login_widget_form_args”
- is there a way to pass a parameter to a add_menu_page function?
- How to hook into action/filter call
- Is there any way to inject text onto pages?
- grab or load text on demand
- How can I replace content on site generated from plugin without changing plugin
- Rename Smart YouTube’s httpv back to http for all posts
- Edit post image attributes on fly?
- Managing and deleting transients with dynamically generated transient names
- how to display a template.php in a shortcode
- list of custom post by custom field in frontend
- get_post_meta shortcode returns empty field
- Shortcode do not return the right data in post
- Why does my custom plugin only function correctly once per page?
- JS working when used normally but not in wordpress
- Adding an item to an anonymous array inside a filter?
- WooCommerce Product Table – filter query on attributes
- How to pass multiple custom fields as shortcode’s parameters
- Modify function output in a plugin
- Override filter variable not working
- Do_shortcode before send email content
- Get shortcode attribute for AJAX call
- How to use a shortcode of a plugin in another plugin php file
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- How to store multiple instances of the plugin’s options for various shortcodes
- Help needed with woocommerce (wc stripe) filter
- Modify Plugin shortcode function code
- wordpress Shortocode running twice?
- Shortcode in a blog post, footer and related products stop working
- passing ‘&’ in return function of add_filter
- Allow user to input shortcode into wordpress widget
- How to Set Limit with WordPress Get Bookmarks Shortcode
- Filter for modifying image on upload
- County Finder form/plugin?
- add query string to all pages after user logged in
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- WordPress shortcode plugin not working
- WP Customer Reviews call short code on another page [closed]
- Shortcode returning specific content of a post
- How to Add Extra Text In WordPress Title Before Post Publish
- cURL External API request displays content above other content on page
- Beginner question: Accessing js script in plugin
- WordPress REST API filter on blank custom ACF
- FacetWP custom display based on post type [closed]
- Removing filters with arguments set in a class