Forum Replies Created
-
AuthorPosts
-
Dear Jackie,
the url about activities is now ok, resolved, i tried to apply the same rule for doctors but its not working
for example, I want to change from https://www.example.it/doctor/test/ to >>>
https://www.example.it/engineer/test/
Thanks once again for your support.
Sorry Jakie, not resolved, now, when I try to save the function file, appears this error:
Your changes to the PHP code have been reverted due to an error on line 308 of the wp-includes/class-wp-hook.php file. Correct and try to save again.
Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "change_custom_post_type_slug" not found or invalid function name in wp-includes/class-wp-hook.php:308 Stack trace: #0 wp-includes/plugin.php(205): WP_Hook->apply_filters() #1 wp-includes/class-wp-post-type.php(442): apply_filters() #2 wp-includes/class-wp-post-type.php(418): WP_Post_Type->set_props() #3 wp-includes/post.php(1694): WP_Post_Type->__construct() #4 wp-includes/post.php(43): register_post_type() #5 wp-includes/class-wp-hook.php(308): create_initial_post_types() #6 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #7 wp-includes/plugin.php(517): WP_Hook->do_action() #8 wp-settings.php(617): do_action() #9 wp-config.php(78): require_once('...') #10 wp-load.php(50): require_once('...') #11 wp-admin/admin.php(34): require_once('...') #12 wp-admin/theme-editor.php(10): require_once('...') #13 {main} thrownA big thank you Jakie, now it works!
Hi Jakie,
thanks for your feedback, I have updated the files and permalinks in settings (emptied the cache) but when I write the address
https://www.example.it/activities/test/ there is a redirect to >>> https://www.example.it/service/test/
can you write me all the lines where to change the code?
Thank you
images enclosed
-
AuthorPosts
