An Alternate Solution is :-
You can make a form and when click on link submit the form with post request by JavaScript or jquery and send user id with post method in hidden field and get it on profile page get the user data by id and display it where you want.
Related Posts:
- Add tags to the section via functions.php
- Define page template in wp_insert_post
- Add custom template page programmatically
- Define custom Page Template without its own .php file
- Relative URLs and hide /wp-content/themes/
- Filter the query ONLY for the search results page
- How do you permanently remove default rewrite rules from the wp_options table?
- Change meta tags programatically
- Custom page template how to check is_page from functions.php?
- Run Product Filter Javascript On Page Template
- How to add iOS & fav icons to the theme?
- Programmatically set page template based on page ID
- How to make unique add_filter to the_content of specific page template files – so each template gets its own addition
- Adjust which tempalte a page uses with a function?
- How to specify which Gutenberg blocks are available in the editor for a page template
- Trying to inject twitter metadata into using wp_head action in functions.php – get_the_excerpt() returns null
- how to change link of some wordpress pages
- Filtering posts by category name based on page’s slug
- How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?
- How can I create a page with a specific URL?
- is_account_page() change to page slug
- How to enable template page only for a post id page
- Activate small php condition at footer over page template
- Get_template_part inside a folder
- Passing a variable via wp_head and then calling it on the page
- How to rewrite the custom url in wordpress?
- meta tags doesnt fetch data from permalinks
- Remove adjacent_posts_rel_link under 3.2?
- Pass parameter to hooked function using custom page template
- different style sheet for just one page template
- Auto Generated HTML source code formatting
- Adding javascript to functions.php causes problems with my template
- Page get parameter doesn’t work with is_single() function
- How to rewrite wordpress search to work on specific category
- How can I pass a shortcode value to the head in wordpress functions.php
- Different favicon on different pages
- How to Add Shortcode to html img code?
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- Page Template Won’t Load Correct CSS File
- Function to echo (or display?) wordpress tags in the head section
- How do I find the code executed when wp_head() is called?
- colorbox not loading in
- Function to check if custom page is used by page?
- Unable to use get_page_by_title() more than once per page?
- Create Custom URL structure for specific Post category using Post ID instead of post name
- Custom route and extract data from slashes and parameter
- reWrite wp-content url to point on my cdn
- How to Override Page Template if URL matches query?
- Probleme shortcode with list author
- How Can I Create a Friendly Slug for a Dynamic Page?
- Hide author info in single posts by certain users
- Add #primary at the end of navlink permalinks on single posts
- Enqueue script if not page template
- How to change form action of wp-login page with a function
- Route wordpress with template
- Pagination won’t work on custom page
- Placing CSS/ JS into the header or footer (inline) – trying to apply to several templates
- Rewrite rules and the permalink
- Sending Messages Back to the Template After Processing?
- custom COOKIE on custom page
- is_page_template wont allow me to enqueue scripts
- Problem with add_rewrite_tag
- How to add a meta information to the URL?
- How to use different jquery function of idangero swiper dependant on page template?
- Echo a div to header.php from functions.php
- new to javascript – using in instead of functions.php, not loading correctly
- WordPress is adding pagination for all pages not only for blog page, How to remove pagination for all pages except blog/posts page?
- wp_head not injecting css
- Logout redirect via page template without confirmation?
- Template Redirect Function Only Working When Logged In
- How to Programmatically Replace Characters in WooCommerce Product Slugs?
- Missing feature image link function
- What’s the difference between home_url() and site_url()
- Remove “Category:”, “Tag:”, “Author:” from the_archive_title
- get_template_directory_uri pointing to parent theme not child theme
- How to customize the_archive_title()?
- remove empty paragraphs from the_content?
- What is the “with_front” rewrite key?
- Why use if function_exists?
- How to override parent functions in child themes?
- wp_enqueue_script was called incorrectly
- Add multiple custom fields to the general settings page
- Ajax call always returns 0
- 400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
- How long does a deprecated function live in core?
- Solution to render Shortcodes in Admin Editor
- How to add a data attribute to a WordPress menu item
- What’s the difference between esc_html, esc_attr, esc_html_e, and so on?
- remove_action on after_setup_theme not working from child theme
- Use a template file for a specific url without creating a page
- plugins_url vs plugin_dir_url
- Remove type attribute from script and style tags added by WordPress
- How to run a function every 5 minutes?
- Best way of passing PHP variable between partials?
- Upload Multiple Files With media_handle_upload
- How to display custom field in woocommerce orders in admin panel?
- Adding fields to the “Add New User” screen in the dashboard
- Issues with title-tag and document_title_parts
- How do I get the current edit page ID in the admin?
- How to check if a user exists by a given id