• Resolved Webtaurus

    (@and_or)


    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)
  • Plugin Author Nahuai Badiola

    (@nahuai)

    Hi Henk.

    Thanks for reaching out and let us know the issue you encountered with the update.

    We could confirm that the issue is cause by the code snippet you mentioned.
    The good news it’s that you can fix it just changing the hook priority, use 15 instead of 5.

    Please let us know that it’s also working for you.

    Best.

    Thread Starter Webtaurus

    (@and_or)

    Hi Nahuai,

    Thanks for this very simple solution to this problem… if every error would be this easy to fix my life would be a lot more relaxed ??
    Tested and can confirm it works.

    Thanks again!

    Plugin Author Nahuai Badiola

    (@nahuai)

    Great! Happy to help! 

    If you are satisfied with the plugin and the support, please consider leaving us a review. Your feedback not only motivates us to keep improving it, but also helps guide others looking for a one-purpose, lightweight plugin like this.?

    And if you encounter any other issue, do not hesitate to open a new topic right here. We will be happy to help you again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update 1.3 broke website’ is closed to new replies.