How to retrieve custom post type permalink in another cpt?

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>

Do something with thumbnail image on post publish

Actually WordPress offer a good hook , You can get data from Post Published , for more you can follow this example : https://codex.wordpress.org/Plugin_API/Action_Reference/publish_post Example of a simple update of custom field: /* Do something with the data entered */ add_action( ‘save_post’, ‘myplugin_save_postdata’ ); /* When the post is saved, saves our custom data */ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)