You can always check the value of the result with the function var_dump
as follows:
var_dump( $matches[1] );
In this case, I think is returning an Array
with the results you should try to out.
<?php echo $matches[1][0] ; ?>
Related Posts:
- Custom pages with plugin
- Add rewrite rule to permalink structure
- Add Rewrite Rule for custom page
- How Do I add a redirect rule to WordPress?
- add_rewrite_rule, plugin activation and plugin deactivation
- Using rewrite rule to access a view of a plugin from home page
- flush_rewrite_rules not working on plugin deactivation, invalid URLs not showing 404
- Custom rewrite rule is not picked by WordPress
- flush rewrite rules doesn’t flush them (still got 404)
- Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?
- Add_rewrite_rule doesn’t add custom url in plugin
- How can I rewrite a plugin generated URL?
- flush_rewrite_rules() not working on plugin activation
- Is there a plugin to record querystring parameters for a page (for customer tracking)? [closed]
- WordPress custom URL Rewrites redirecting not masking
- How to add rewrite rules and pagination to retrieve attachments files?
- Change settings of get_post_type_object
- Custom page slug without creating a WP page
- Remove rewrite rules generated by plugin during deactivation
- How does WP handle multiple matching rewrite rules?
- Custom rewrite rules not working with WPML
- Is it possible to use multiple post_name, post_title and post_content?
- register_taxonomy and variable rewrite slug
- Problem with Author page redirect
- How to Create a Custom Slug for Tags and Categories with a prefix or suffix?
- Redirect to another page using contact form 7? [closed]
- Remove .htaccess portion upon plugin deactivation?
- How do I pass custom shortcode-extracted variables (taxonomy) into a query function for WordPress RoyalSlider?
- Custom url rewriting
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- URL rewrite with external JSON query
- How to pass a query string to another page on the same site?
- WordPress rewrite rules not working
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Passing value as hidden parameter to next page
- i want to rewrite my custom plugin url
- can’t install any wp plugins [duplicate]
- add_rewrite_rule to load different page, without changing URL in browser
- Rewrite/Change custom taxonomy slug
- WordPress rewrite rule depend on meta values not ids
- Add custom WordPress admin page with pretty url via code
- Change custom rewrite rule when permalink is updated/changed
- plugin: rewrite rules are lost when WP updates
- Custom pages with plugin
- add_external_rule – rules deleted when visiting permalinks page
- How to disable wordpress page rewrite rule?
- How to programatically create a simple HTML page using the permalink of a WordPress post?
- Apache rewrite rules and wordpress problem
- How to get the parameters on page and avoid 404?
- How to create custom content on custom page from plugin?
- Rewrite rule help for gallery plugin
- WP Job Manger change jobs url (NOT slug)
- URL Redirect on GoDaddy platform [closed]
- Disable plugins on cron and ajax page
- Convert WordPress pages to PDF
- Plugin or mod for wordpress to make content publication SUPER easy
- enqueue script only if it is not already enqueue
- Custom database table for plugin not creating on activation
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- Is there a quick way to inject i18n domain into theme/plugin files?
- How can I list recent posts excerpts?
- Rewrite rule to prettify two $_GET variables while in a new endpoint from a page
- Hiding posts – WP Hide Post not working
- Add a custom form on the post-new.php admin page
- Scripts at the end of the page
- WSOD after upgrading to 3.1
- looking for navigation plugin (accordion) [closed]
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- How to use JSON data from URL into table on my wordpress website
- How to show WP addon installation path during installation?
- Replace default og:image tag YOAST
- Automatic plugin updates not working
- PHP Fatal error: Call to a member function locale() on a non-object
- WordPress error: Options page Setting_ not found in the allowed options list
- Shortcode Placeholder Plugin
- Minimizing scripts & css files that plugins add
- How to setup a product that has multiple price options? [closed]
- correctness of URL
- The “Child Pages Shortcode” plugin, block template
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- How to get a custom page through plugin?
- Filters on the_content with plugins, pages and shortcode
- Plugin access and Roles
- How to create a plugin page that shows XML?
- How to make WooCommerce payment method field optional?
- How to display the custom post related blog by category?
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Forms not displaying,becomming an fatal error
- Login issue in WordPress
- Mobile and Tablet responsive in Elementor but not on the actual site?
- WordPress backend post update without refresh
- RSS icons have the same Alt tag. Lighthouse is failing these elements. How do I display different alt tags for each icon?
- wp meta_query meta_value compare =REGEXP delimited by space
- How to insert variable which contain array value in wp_options table?
- Hyperlink to execute PHP
- WordPress plugin WP-blocks is adding slashes before apostrophe
- Adding Category in URL in some post
- WordPress Hooks : Where to place callbacks that repetitively yield the same effect?
- How to know if your code is executed on wordpress.com and wordpress.org?
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there