Update 1.3 broke website
-
Hi there,
I had to revert the update to version 1.3. After the update to 1.3 my site (latei.nl) had a fatal error.
The 1.2.4 version works.I will report back if I find the exact cause. It looks like the error has to do with the code I use to rewrite the slug.
add_action( 'init', 'rename_portfolio_custom_post_type_slug', 5 ); /** * Rename slug in Genesis Portfolio Plugin. * * @author Anita Carter * @link https://cre8tivediva.com/rename-genesis-portfolio-slug/ */ function rename_portfolio_custom_post_type_slug() { $args = get_post_type_object( 'portfolio' ); $args->rewrite['slug'] = 'projecten'; register_post_type( $args->name, $args ); }
Kind regards, Henk
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Update 1.3 broke website’ is closed to new replies.