Bug – Incorrect category on quick edit post
-
Hi,
I have a custom permalink config
mysite.com/%category%/%postname%/
And I choose a principal category using the Yoast Plugin. With this I using a custom action for the new’s publish/updates of my post’s and send a notification to my social profiles.
add_action( 'transition_post_status', 'notifications', 10, 3 ); function notifications ( $new_status, $old_status, $post ) { if ( get_post_type($post->ID) !== 'post' ) { $send = false; } else { $send = true; } $url = get_the_permalink($post->ID); }
[…]
But, I receive an “incorrect” permalink config when I using the quick edit post function.
If I use the normal post editor the permalink that I return is
mysite.com/vacations/china
But if I use the quick edit the permalink is wrong:
mysite.com/travels/asia
The principal category that I choose disappears and is sending the WordPress default alphabetic category as a base.
Yoast Version: 7.4.2
WordPress Version: 4.9.5
PHP Version: 7.0
- The topic ‘Bug – Incorrect category on quick edit post’ is closed to new replies.