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?
- Hide custom post type field from author?
- Sorting a query by custom field date
- echo value from ‘select’ field type into page template using cmb2?
- wordpress plugin error handling
- How to sort CPT by custom meta value (date), and return posts month by month
- WordPress Custom Shortcode Conflicting with Media Library
- How to solve suspected memory issue in custom WordPress loop?
- Trying to save custom post type from frontend partially working
- wp_query and comment_parent – select only posts with top level comments
- Comparing timestamps in meta query doesn’t work
- Is there any performance consideration when using Custom Post Types?
- How to redirect all pages of a custom post type [duplicate]
- How can I add a column in the wp_list_table of the admin area?
- How to filter the description of a custom post type
- Can’t unregister parent theme’s CPT from my child theme
- Delete link on single-custom.php with redirection
- WP All Import – Using Xpath to set a select value
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Automatically update custom field in all posts of a custom post type
- Custom post type unintentionally called in every page
- search also in taxonomy, tags and custom fields
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Can taxonomies of custom post types be used with category actions?
- Querying Two Custom Post Types with OR Not Working
- How can I get the number of custom post type posts that have a specific attachment image set?
- Bulk Update Custom Fields for Custom Post Types
- Add custom field to Posts and sort by it
- Including metaboxes from custom post types in global search — continued
- Show image gallery from a custom field
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- Custom Fields for Custom Post [closed]
- Sort and filter custom post type posts by custom taxonomy
- Displaying All Posts of a Custom Post Type in WordPress Multisite Backend
- Adding Page Templates to post but it ignored it
- Search filter triggered & sort by custom post type
- don’t publish custom post type post if a meta data field isn’t valid
- How can meta boxes be added to “unknown” custom posts?
- Custom “radio button meta box” not saving correctly
- How can I add a filter to a particular post format?
- Custom posts type for individual pages?
- custom post data – how to
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- WP Query ‘posts_per_page’
- Custom Post Type Metadata Not Saving
- A meta box (in a custom post type) with two different type of fields
- How can I remove filters from custom post types?
- Many to many to many custom post relationships
- copy images from custom field to another custom field
- Custom Query: If One Post Object Field Value Is The Same As Another
- How to migrate Custom Field Template to a WordPress Multisite
- Custom Post Type archive redirects to home
- Sum and count of custom field values
- How to use a specific custom field in a custom post type as slug
- How to hide a custom field from admin?
- Cache issue with WP_Query and custom field filtering
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- conditional filter
- Alike Shortcode using in Custom Shortcode
- Why this didn’t work if i use get_the_ID(), but works if i pass the numeric id
- What is the correct way that when creating a custom post type assign values to custom fields created with pods framework?
- Custom Metabox Info Not Saving
- PHP Warning with Custom Fields
- Add content to wordpress edit.php page
- Custom Function to redirect singular post if specific meta field is empty
- How do I extract the contents of a CPT’s custom field for all posts?
- Highlight a Post on archive page if it has a new comment?
- How to delete comma from the end of results? [closed]
- Publish post and create additional posts with same content
- Order Custom Posts by Several Fields
- Custom field totals
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- 404 on Pages for Custom Post Type & Query_Posts
- How to show animal lineage/pedigree in WordPress?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- A to Z list for custom post types
- Trying to set up a range filter for related custom post types