Change permalink for a single post type only

This will be done when you register_post_type : $args = array( ‘rewrite’ => array( ‘slug’ => ‘book’ ), ); register_post_type( ‘book’, $args ); IMPORTANT ! Remember to go to wp-admin options > permalink and click SAVE on that page for the changes to take effect.

How to Display ACF Relationship Custom Field as Link to Specific Custom Post?

Finaly, I make this working. I put this in my template: <?php $contacts = get_field(‘list_supplier’); ?> <?php if( $contacts ): ?> <?php foreach( $contacts as $contact ): ?> <a href=”https://wordpress.stackexchange.com/questions/118817/<?php echo get_permalink( $contact->ID ); ?>” target=”blank”><?php echo get_the_title( $contact->ID ); ?></a> <?php endforeach; ?> <?php endif; ?> And here is the filter I am using … Read more