Hi,
Could you check if any permalink is appended to the custom permalinks array in the debug section?
Also, please check if the permalink editor is displayed for that specific user:
https://permalinkmanager.pro/docs/basics/uri-editor/#how-to-edit-custom-permalinks
If not, you can change the allowed user role in “Settings -> Advanced settings -> URI Editor role capability“.
Hi.
Actually the form we are using for creating the post is the issue. We are using Rehub RH frontend pro and any posts created through that form are not setting the permalink correctly. If i go and resave the post from admin panel then the permalink is updated correctly.
Unfortunately, I do not have access to Rehub RH code and that theme is not officially supported by Permalink Manager. Theoretically, you can try to force saving the custom permalink using extra code snippet:
function pm_set_custom_permalink( $data ) {
if ( ! empty( $data['post_id'] ) && is_numeric( $data['post_id'] ) ) {
$new_uri = Permalink_Manager_URI_Functions_Post::get_default_post_uri( $data['post_id'] );
Permalink_Manager_URI_Functions::save_single_uri( $data['post_id'], $new_uri, false, true );
}
}
add_action( 'wpfepp_form_actions', 'pm_set_custom_permalink', 999 );
Thanks. This resolved it.