Try placing a header() function instead of wp_redirect, so
header("Location: mysite.com/profile/username");
Related Posts:
- How do I use WP_query with multiple post IDs?
- Disable Attachment Pages Completely
- Get meta_id along with meta_key and meta_value
- Enable/disable post revisions programmatically
- Show content if parent page has children
- Detection of theme being used
- Where to include php files in wordpress and how to refer to them later [closed]
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to order posts by modified date without using ‘query_posts’?
- How to add a featured image to a existing post via php?
- How can I add a specific, custom widget to my theme’s header.php?
- Get widget settings function?
- wp_handle_upload_prefilter valid date from input file
- Mysterious HTTP 404 header in my own scripts
- Archive dropdown styling not applied
- Browser title script ignoring is_page /else conditional [closed]
- Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- Custom php page outside the scope of my theme
- How to get 2 or multiple custom post types in wordpress functions.php
- PHP to Programatically delete a file
- Instantiate class to be available to all plugin functions
- Implement toggle switch for theme options in settings API
- Show comments menu in dashboard only if the site has comment
- WP nonce invalid
- Creating a Multi-Level Associative Object Using AJAX
- Create WP_Query to search for posts by their categories or their parent/child categories
- add_action shortcut?
- ACF: how do I get the fields and its values of a specific group?
- My custom wp-admin php files stopped working
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Get page that displays all children of taxonomy parent
- How WordPress reacts to a lack of memory of the server [closed]
- Function to capture a value and store it in a variable
- WordPress Multiple Navigation bars
- Adding a widget function into the php theme file
- PhantomJS with wordpress
- My new button is in the wrong place
- Checking array against author id in loop
- Call to undefined method – Download Monitor
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- Show a different code on front page to other pages
- Admin ToolBar not being displayed at top of site
- Undefined method class::construct() when creating a plugin
- Why are the details of my todo not saving?
- Theme activation hook in php class
- Live to Local on MAMP, not working, outputting functions.php code
- Remove extract from function
- Undefined offset: 3 in custom function
- Redirecting to a custom forgot password page
- How to pass current loop data into nested loop
- Shortcode to log user into current URL
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- WordPress Staging and Testing of Plugins Best Practices
- Custom navigation menu with awsAccordion
- Taxonomy term count
- Conditionally remove comments and post meta in functions.php
- Replacing WordPress Icons (menu,icons32, etc)?
- How to restrict shipping zone in a specific interval time
- Can/should we delete wordpress cron jobs with no action?
- Accessing an instanciated class
- Remove Author Links
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Hide A Class and Add Custom HTML Code Using WordPress
- Rewrite rule don’t work in wordpress on xamp
- Flushing the slug base has no effect and does not change
- Resize post thumbnail
- reset data of an array
- Multiple cron jobs vs daily cron job doing multiple things? Which one yields better performance and scalability?
- Assign meta_query value to php variable
- How to create a widget with a populated dropdown?
- Change WooCommerce currency programmatically on AJAX request
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- Move blogs but with applied filters
- Get user by meta data key and velue
- Add another role to a user when they click a button?
- Use page-templates without creating theme
- Unable to pass arguments to function used in add_action
- How to limit functionality of a woocommerce plugin to only certain user role?
- Short code into PHP
- Allow user to select location and then set cookie for location in WordPress
- Use PHP code in Menu Admin Section
- Sort on two variables
- Front page not loading after updating PHP version (ec2)
- uploading a new theme to live server
- Limit Taxonomy Parents
- Migrate php folder to WordPress
- See output of a sql query while plugin installation in wordpress
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- Trying to fix multiple category drop down
- Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1
- How can I execute $string = if();? [closed]
- Send foreach $_post method to contact form 7 [closed]
- Options.php loop won’t show!
- Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?
- Null value given when confirming email’s
- Predefine Magazine Style Layouts
- Woocommerce Convert existing order to the cart
- Execute function when I click button