Permalink for specific post type

If it is an option to use a plugin, here is one with over 100,000 installs, so it seems to do a good job: https://wordpress.org/plugins/custom-post-type-permalinks/ It is exactly solving your client’s wish. After installing and activating it, go to Settings -> Permalinks -> and scroll down to the section Permalink Settings for Custom Post Types.

Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin

I solved the problem using the admin_url() wordpress function. In order to link to another page in the plugin or even to another plugin within my project, I did it by passing the registered url to admin_url() function. <a href=”https://wordpress.stackexchange.com/questions/367725/<?php echo admin_url(“admin.php?page=edit-member-page&id=’.$id);?>”>John Smit`h</a> //The $id variable passed to the link will be retrieved by use … Read more