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]
- creating html reusable blocks via shortcodes
- Create a navbar filter that filters by a custom field
- Passing an array from shortcode-function to filter-function
- add_shortcode is not working in plugin where others are working
- Single API call exposed via shortcode with params
- SEO Friendly URL on dynamic product page produced via shortcode
- Get Time Taken By Each Action Hook in WordPress
- Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Nested shortcode functions accessing variable
- Filtering WooCommerce Orders by Category
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- How to remove plugin metaboxes from edit.php
- Insert content of a post into another
- Plugin developer automated documentation
- qTranslate remove default directory from link
- How to disable a plugin for certain page?
- Output content to the_content before a plugin does
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- accessing wp.media api from a tinymce plugin
- Creating shortcodes in plugin
- Visual Composer shortcode for child theme dir
- get_post_title is not working on homepage
- Some code in shortcode function being ignored
- WordPress user account activation
- How to create a custom shortcode based on the layout?
- External Script Using WP – Hooks / Actions Not Working?
- URL parameters causing 404 on home page, but nowhere else
- Which filter affects the ‘entry-title’ post class
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Filtering get_permalink in Jetpack / ShareDaddy
- Unable to add TAB character to post?
- plugin shortcode output
- How to Create a shortcode to this php function
- Inject HTML meta tag inside wordpress tag using add_shortcode
- How do I apply style to each category of a list?
- Create shortcode to echo javascript
- Proper way to replace the_content only for pages created by custom plugin
- add_filter doesn’t work
- What is @Action in WordPress?
- Template filter for custom taxonomy terms
- Is there a way to figure out which action/filter invoked a function?
- Custom Shortcode Broken in WordPress 3.1
- Use $_GET inside a shortcode print empty Array
- Namespaced shortcode?
- Where are theme codes located for WordPress?
- Add sub menu page in your plugin
- My plugin won’t return anything [closed]
- Using add_action before add_filter on a plugin?
- Anyway to convert a plugin to become a shortcode?
- Check if variable is set in filter
- What exactly happens to function argument availability when using a filter?
- Render Modula Plugin Shortcode On Ajax Request
- Shortcode to update user meta
- Why shortcode always displayed after footer not in body
- How to have sample page for each new register users in a membership website
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- using do_shortcode
- Why am I unable to load scripts in head in plugin?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Deactivate JS Script in Plugin Shortcode
- Passing stored variables to add_filter
- plugin shortcode not working on ajax request call
- Displayed content disappears when adding attributes to shortcode
- override filter in a plugin
- Check filter defined or not?
- How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?
- Where to find the code used to render a page that has a shortcode and a template defined?
- Shortcode not working after move wordpress website files
- remove_action not removing add_action from constructor
- Shortcode not getting replaced
- How to activate a plugin on the activation of a theme?
- Add Shortcode tag in Widget/Sidebar
- Flipping Book PHP Code? Any experience?
- How can I apply a WP filter on specific plugin version
- How to customize a title by passing query string?
- WPTouch – how to remove shortcodes or make shortcodes function
- convert more tag to shortcode
- Shortcode does not expand in Facebook like
- Editing wp-config.php
- Plugin that provides the [edit] shortcode?
- 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
- WordPress Plugin Insert Html Code with Shortcode
- How to use the pre_option filter before a plugin loads?
- Return multiple values in a shortcode attribute
- IF condition based on wp_remote_get output
- shortcode not return any thing in Gutnburg
- Shortcode Attributes to Return different $_POST
- How to change shortcode’s default theme?
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- Is there a way to convert shortcodes to html content?