For redirect to custom url you need to change post detail link to custom url. You simply remove post link and apply custom url.
<a href="https://wordpress.stackexchange.com/questions/353574/<?php echo get_field("link'); ?>"><?php the_title(); ?></a>
In my case “link” is custom url.
Related Posts:
- remove custom post type permalink
- How to change “Draft” string for status of custom post type to “Unavailable”?
- How to correctly get post type in a the_title filter
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Remove “Get Shortlink” button in admin of custom post type
- How to get Custom Post ID by adding filter to child theme’s function
- Add html to cpt main page / admin edit.php
- register_taxonomy and register_post_type does not work [closed]
- Displaying custom taxonomy in the admin list of a custom post type
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- filter custom post in rest api with custom function
- Filter Posts from the Main Query
- Create new custom post and post category of same name
- What do the numbers mean at the end of add_action(‘save_post’)…?
- Filter search posts by post meta?
- Display custom post front end filter by ACF equals current user
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Filter posts by their related field’s custom field
- filter rest api post by a acf filed
- Keep br tags from stripping
- Filter wp_dropdown_categories Per Post Type
- Converting a checkbox filter for custom fields to a dropdown
- How do I filter a custom post type loop by a field?
- How to create alias / synonym links to existing posts
- Populate Custom Fields in a Custom Post Type?
- Create/Edit posts and auto-redirect back to listing page
- How to detect filter in URL in Category page?
- Custom query to filter posts that have current post as a taxonomy [closed]
- WP All Import – Using Xpath to set a select value
- How to change post featured image using a custom field of category?
- Publish an XML feed from a CPT with ACF fields?
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- How to create shortcode to display custom field value on a custom post type
- Confusion regarding Nonce & using it in Custom Columns for Saving Checkbox Value to Post Meta
- Setting proper query for multiple custom admin filters
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Automatically update custom field in all posts of a custom post type
- WP_Query: include custom post type only with specific meta value
- Is there a way to get a file URL from the relationship ACF field?
- Display custom fields on post excerpt or teaser
- How to: Display ACF [fields] on Custom Post Types Utilising WordPress ‘Hooks’? [closed]
- WP_Query orderby modified to include custom meta changes
- WordPress custom loop filter by meta_key and value with serialize data
- Adding Show Less/More link to Custom Post Meta
- Returning a list of custom post types excluding those without a specific meta_value
- Want to Add Custom Fields for Uploading video to WordPress Users from front end
- Keep display metadata value on backend – Custom Metabox
- Append date to custom post type url slug
- How to bulk copy custom fields between custom posts?
- Custom post type redirected to homepage – how to debug
- Sorting custom post type columns with external data and without meta values
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Meta Key Value in current-user-only loop
- Custom post type unintentionally called in every page
- Retrieve value of a category’s custom field
- Calculate all custom field values in the post loop
- Genesis filterable portfolio isotope [closed]
- Rewrite and custom post type: order by custom field not working
- add custom field to custom post type
- How to set up multisite for multi language?
- CPT Group by Date metabox Value
- How to check if user meta field is empty in conditional else statement
- Replace text in post from cvs
- Admin search ACF relationship
- wp_query check if integer exists in custom field’s array
- How can I see a list of my Custom Post Types of the last term I was in?
- How can I dynamically add a post to a custom post type which uses a custom field?
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- Custom Posts Types as Custom Fields
- Filtering WP_Query
- Get image post ID in media upload
- Why is my select meta data not saving?
- dynamically add a custom field or metabox to custom post type [duplicate]
- Give a permalink to Custom Post Types without title
- Role scoping for contributors down to the field level
- How to implement a Google map store locator
- Creating a Custom Post as a repository for theme constants
- search also in taxonomy, tags and custom fields
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- 301 redirect for converted post type
- Random image from tag/custom type on sidebar
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- How to stick custom post at the top in search results
- filter custom post type by meta key in dashboard
- How do I create custom fields for multiple post types?
- Can taxonomies of custom post types be used with category actions?
- Add field to all custom post types
- Categories of custom taxonomy don’t show any posts
- Query & Order posts by custom fields
- Filter custom posts using auto populated dropdown selectors
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Custom post type content using custom fields without template
- Cannot add custom field to “orderby” parameter in Rest API
- Child post with numeric only slug keeps redirecting to parent
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- retrieve Meta field value from CPT and set those values as Image Meta Field “Title”
- Having unique constraints for custom fields in a custom post type
- How to add a post slug to a url?