I want to custom my URL.
<a href="/2017/?post_type=issue_number"><?php the_title(); ?></a>
I want that the 2017 in URL is <?php the_title(); ?>
.
Some as this :
<a href="/<?php the_title(); ?>/?post_type=issue_number"><?php the_title(); ?></a>
It is possible??
You need to change the URLs in your WordPress config to use "Post slugs".
SOLVED
With this code
<a href="/<?php echo the_title(); ?>/?post_type=issue_number" >
<?php the_title(); ?></a>
<?php echo basename(get_permalink()); ?>
would be a better approach I think. That basically outputs the slug portion (not the whole URL)...which is basically the title.