Ive looked at the questions that may have already answered what im needing and came up short...Im modifying a plugin and the custom post-type name shows in the url when adding a new post.
But..when I edit a post, the url shows up like this: /wp-admin/post.php?post=2059&action=edit
With 2059 being the post ID. What I would like is when editing the post for the url to contain the custom post-type name also.
So instead of above, it would show something like: /wp-admin/admin.php?page=custom_pt_name&post=2059&action=edit or /wp-admin/admin.php?post_type=custom_pt_name&post=2059&action=edit
I appreciate the help
Ive looked at the questions that may have already answered what im needing and came up short...Im modifying a plugin and the custom post-type name shows in the url when adding a new post.
But..when I edit a post, the url shows up like this: /wp-admin/post.php?post=2059&action=edit
With 2059 being the post ID. What I would like is when editing the post for the url to contain the custom post-type name also.
So instead of above, it would show something like: /wp-admin/admin.php?page=custom_pt_name&post=2059&action=edit or /wp-admin/admin.php?post_type=custom_pt_name&post=2059&action=edit
I appreciate the help
Share Improve this question asked Apr 11, 2019 at 23:37 captainMcaptainM 217 bronze badges1 Answer
Reset to default 0You cannot do this without modifying WordPress core files.