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]
- Add bcc to contact from on wordpress
- How do I override plugin templates and stylesheets?
- What happens when WordPress memory limit is exceeded?
- Register Script in Plugin Widget
- Restricting page access [closed]
- Migrating Asp.Net site to WordPress site
- Date format – Meta Box plugin
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- Hide a Menu Item on Login
- WordPress Apply filter in plugin causes 500 internal error
- Updating options into the wp database performance
- Meta query for comparing two dates
- What are the performance hiccups when building plugins?
- Can’t activate Plugin: unexpected T_STRING, expecting T_FUNCTION [closed]
- How can I modify admin bar only if my plugin is loaded
- Using wordpress translations strings in plugin
- How to get menu location in wp_update_nav_menu hook
- Are mu-plugins plugins still deployed via wordpress.org/plugins?
- Proper way to use plugin functions in functions.php
- How to make my blog available to other website using RSS feed?
- Slashes stripped in ACF
- How do I add some javascript validation to the admin interface form’s onsubmit?
- How do I publish portfolio items with a future date?
- Login problem after installing my written plugin [closed]
- Can WordPress Drop-ins be given their own directory?
- Can deactivating a plugin sometimes “reset” settings within that plugin?
- remove all submenus from plugin
- Can my hooked uninstall class function access a global var declared in main plugin file?
- How Can I Safely Remove WP-Super Cache without messing my site up? [closed]
- How to activate a plugin on the activation of a theme?
- Specific way to allow WordPress users to view their current password? And edit it?
- Add Shortcode tag in Widget/Sidebar
- Basic function call on init failing
- echo statement displayed on front end
- Is it possible to remove subscription box from Jetpack stats page? [closed]
- In Woocommerce theme need to add custom external link [closed]
- How to create a post with next buttons
- Problem with isset and $_POST
- multiple language website navigation menu suggestion
- WooCommerce product and terms count [closed]
- Error checking when future updates are automatic
- http_response_timeout filter not working
- Create custom template in plugin and display it into post template section?
- Woocommerce Change The Price Of A Product Once Woocommerce Has Retreived It From Database
- Allowed memory size exhausted problem
- Getting taxonomy images to display on single-post with their terms