How about this:
<a href="https://wordpress.stackexchange.com/questions/293893/<?php echo get_post_type_archive_link("consulta' ).'?consulta=".$consult->ID."#form'; ?>"
Related Posts:
- How to use relative links on my pages?
- How can I store page ID in a post instead of other selected permalink?
- How to get a page url by a page id?
- Why does WP not use relative links when linking pages?
- Menu Link Redirect Based on Username or User ID
- Social Media Links on homepage – within posts/post loop
- Change website URL without breaking links or images? WP 3.3
- Redirect user if it’s not logged in
- I copied my site to another site but all links point to old site
- Best way to add internal link in widget
- Confusion about how a URL is being parsed
- Automatically append ID to at the end of specific URLs
- why some permalinks adding characters/ruining links
- How to change old permalink?
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- How to eliminate permalink prefix in WordPress Multisite
- Get the url of a page template without using the page slug and ID
- How to generate a list of all urls
- Format HTTP links
- Edit permalink for certain pages
- cannot link a external url, present page url acting as parent url
- Can WP give a value a post ID?
- Moved site, Old links in pages still pointing to old host
- How to use page jumps to top of banner and page title?
- How to remove the link of an image on WP 4.2
- Create custom links for excerpts with php dynamically
- How can I see a list of all pages my WordPress site has generated?
- How to make different urls for some tags pages
- A dash can replace a period in a link, how to fix it
- My WP homepage works, but the other pages don’t when accessing from out side of my network
- Can I link to content dynamically from a page to a new page?
- Find internal links to post
- rebuilding/ rewriting a url to make it SEO friendly
- Remove link function from oembed image or video
- How to change dynamic link to relevant post
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- After changing permalink settings, everything works fine except for the two most recent posts
- Latin character conversion
- Pretty links for PHP pages above WP /blog directory?
- Permalink / sub-template issue
- Permalink structure as code in back-end?
- What is the issue with our links? It creates a loop
- wp_get_attachment_url not working
- Make all internal links relative, or otherwise make a website accessible from multiple domains
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- How to filter to output of the get_permalink() function
- Is there a user-facing interface to edit an attachment’s permalink?
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- Get post title with link
- Redirect short-form URL to long-form URL (post_id to post_id + post_name)
- Enable Minify in W3Total Cache using NGINX [closed]
- Why I can’t change the permalink of this page?
- Sub-category and category in permalink structure
- Permalinks changed with WordPress 4.9
- Changing post content on save, using updated fields
- Change blog segment of URL
- Change in permalink structure made javascript cookie not work correctly
- Multiple taxonomies on same permalink rule [closed]
- How to bulk edit image url in featured image and product description?
- What’s actually happening when permalinks for custom post types suddenly stop working
- Conditional permalink structure
- Auto setup “permalink” or request notice
- How to add .html to the end of the permalink
- File access different with permalinks on and off
- mod-rewrite exception? keep #hash in matching urls?
- get_posts post title permalink not working for last item in array
- Add category into post permalink
- Add post overwriting permalink from previous post in 4.6
- Make custom post available under main domain directly?
- Add variables to all permalinks in site
- What is the right way to clean up $title before wp_insert_post?
- How to get links to user and tag by its name?
- How to Use metada Value in Url and is it possible? [duplicate]
- Custom child page permalink
- How to allow slash(/) on page url
- Safest way to create a custom permalink
- Parent/Child Categories Permalinks
- An excluded ‘ghost’ page is crashing my permalink
- Yoast and permalink troubleshooting
- Permalink Issue | Too many redirects
- WordPress project redirecting to a blank index.php when i use custom templates
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- Change permalinks of ‘post’ type (add_rewrite_rule or ?????)
- Generate post title and permalink from custom field and post date
- how to get Pretty permalinks($wp_rewrite) till `INIT` action?
- The permalink for the page doesn’t work and page’s defined link throws “Object not found!”
- 403 Forbidden Error on subdomain
- Search page Paginations not working
- Select page/template from the permalink url
- Removed and Reinstalled WordPress, Redirect Broken now
- localization for Permalink
- Why are all pages redirecting to homepage when using custom permalinks?
- After I migrated a website for WordPress – Saved changes in wordpress settings >> permalinks. Homepage only working, links not working
- 404 not found error on WordPress local host
- .htaccess regex for redirect subdomain to root domain & redirect old permalinks
- Lists Top Authors by Most Recent Posts
- Support Gallery link to pages