I have solved it by myself:
I used following codes instead of
<a href="https://wordpress.stackexchange.com/questions/244525/<?php echo get_permalink("football_player' ); ?>"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
I used this code:
<a href="https://wordpress.stackexchange.com/questions/244525/<?php echo get_permalink( $home_starting_player ); ?>"><i class="fa fa-arrow-right" aria-hidden="true"></i></a
>
Related Posts:
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Adding an extra parameter [string] to my posts’ permalink?
- Query Custom Posts – Add To Selection
- One Custom Post Type two different Templates
- Metabox messes up permalink
- Custom post type – permalink
- How do I get the permalink of a custom post type?
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- How to force one column layout on custom post type edit page?
- Custom Post type & Taxonomy URL structure
- Combining Multiple Taxonomies in one URL
- Custom Post Type – Taxonomy Dropdown Menu?
- Taxonomy term in permalink
- Custom Post Type Archives by Date with Custom Permalink
- How to add multiple images to custom post type?
- How do I remove all the metaboxes for a custom post type?
- How To Set Custom Post Type Title Without Supports
- Modify custom post type rewrite rules in a separate function
- Creating a Custom Post Types dropdown in a Meta Box
- Slug for custom post type archive
- Add pre-existing meta box to new custom post type
- Dynamic page.php template for custom post types
- Permalinks in Custom Post types
- WordPress metabox file upload in custom post [duplicate]
- Disable WordPress Recognizing Path as Attachment
- Timepicker-addon doesn’t show – Datepicker works fine?
- Passing parameters to WordPress static front page
- WordPress custom meta field for custom post not storing data
- How to Duplicate (multiple meta box)?
- Removing parent slug in hierachial custom post type
- Stop / prevent WordPress from updating permalinks of custom post type
- How do I correct an incorrect permalink?
- Update permalinks when new category added to custom post type taxonomy
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Why doesn’t a custom post type permalink ever hit index.php
- Allow post/page hierarchy across different post types?
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Custom Post Type Permalink
- Permalinks for custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- Adding a metabox on a CPT’s submenu page
- Ordering values entered in Custom Taxonomies
- Permalinks: custom structure for taxonomy – tags?
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- Permalink misbehaving in Custom Post Types
- Remove custom permalink structure from custom post type without modifying register_post_type() directly
- wysiwyg editor don´t export paragraph
- One Custom post type 404’s others don’t
- Custom Post Type to replace Woocommerce products – page not found error
- link featured image to external link
- Ideas on how to organize a project [closed]
- Showing a meta box in a custom post type on a page
- Having Issue on Getting Metabox Checkbox Value
- Custom Post Type with modified permalink structure results in 404
- Custom Post Type Pretty Structure
- Multiple wp_editor instances in custom post type using Ajax
- Change permalinks for custom post type based on taxonomy term
- Updating post content and custom fields in edit post screen
- Add a class to post_class if more than one post shares same meta_value_num
- Function to return values from metabox
- Add a meta field to the list of results for a custom post type
- Safe to throw 404 error in request filter?
- Create a custom post type based on ‘Post’
- How to use taxonomy term as permalink folder
- How do you make relational post types in WordPress? [duplicate]
- Placing Admin Post Metaboxes in Tabs
- Wp Meta Query does not work while simple Query Works
- 404 error rewrite permalinks
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- How to prefix custom post type URL with custom post taxonomy term?
- How to stop a permalink redirecting to a page whit same slug but different permalink
- Problem with multi checkboxes value in metabox?
- News post with multiple permalinks? When opened from different page
- Pagination not working (page/2 retunring 404 page)
- Custom post type slug as page slug
- Why did permalinks setting affect the pages?
- Change the url of a custom post type to include taxonomy
- Meta box not saving
- how to use two permalinks for one custom post type based on categories
- Can I override the permalink/slug on creation
- CPT and metabox: create multi checkbox by using array?
- Remove sequential number from permalinks
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Permalinks when using Custom Post Type with static page for archive
- Custom sortable pages on custom post type
- How to change permalinks to taxonomy and post type’s posts
- Redirect permalinks after creating custom post types
- Add multiple custom meta boxes to different custom post types
- Custom post type Featured Image popup not working
- Parent cpt/child custom post type URL permalink relationship
- How to bring custom meta boxes to custom post types?
- Problems with a custom meta_box
- Custom Post Types and 404 Pages
- Posts picking up old Permalinks, how to reset?
- Remove slug from Custom Category Permalink + dual-category permalinks
- WordPress Set A Static Page/Template For All Sub-Pages
- Get permalink in custom post type loop doesn’t work
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type