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
- Creating custom permalink structure for languages
- Permalink not working for page without title
- What is the difference between get_permalink vs get_the_permalink?
- Post titles not letting me use 2 consecutive dashes in permalink
- Using underscores instead of hyphens in the permalink
- How can I force WordPress to redirect to canonical permalinks?
- 404 on category.php pagination
- flexible rewrite ‘ramble’ URLs with WordPress
- Changing pemalink structure to /%post_id%/%postname%/
- Posts not working on windows after changing permalinks
- Custom permalink structure
- How to get rid of index.php?
- Relative or Absolute Paths for Flash Video Player Files
- Update Old Links To Pretty Permalinks Custom Post Type
- remove permalink trailing slash
- Use Single Blog Post as Site Front Page Without Redirect
- Redirect old permalinks with Month and name to Post name on new site
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- WordPress Permalinks on Mac OSX Server 5 (El Capitan)
- How to find out who handles a permalink?
- Permalink /%category%/%postname%/ returns 404 on OSX
- Page Attachment Permalink Structure based on Menu Order?
- stop the_permalink printing and save as variable?
- Remove parent category from permalink but keep breadcrumbs structure
- How to remove specific category from URL in WordPress
- How to set permalinks when posts and pages have different URL structures?
- redirect/ %category%/%postname%.html to /%category%/%postname%
- Permalink Doesnt Work – URL Not Found
- Echo title with permalink
- Multiple permalinks
- Redirect From Url To Url
- how do prevent wordpress from creating permalinks for media files
- custom query var NOT working on a plain permalink: http://10.8.10.9/?page_id=1774/?location=968&floor=1
- Changing permalink structure and domain
- How to add a base/front slug/url to specific post types?
- Permalinks not working in WordPress
- Why does enabling Permalinks make pages not found?
- Problem by $output and permalinks
- Permalinks by Post Name Are Not Working
- Pretty permalinks and Facebook comments
- WordPress upgrade from 2.7 to 3.3 Permalink problem
- I use wordpress wp-page navi
- Post name permalinks File not found — Mac High Sierra
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- Create new URL structure for custom post types
- append current user-id to all internal permalinks
- Page returns 404 for specific permalink
- issue with the_permalink
- Pagination links for taxonomy archive page 404 error on every page except first
- Facebook Share Permalink Javascript href
- Links after changing hosting and domain
- Custom Permalinks and filters?
- ?posts_type=xxx not rewritten
- Category pagination first link works, remaining don’t
- AllowOveride All causes assetts and Admin Urls to 404