Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Philip Arthur Moore

    (@philiparthurmoore)

    Along these lines, could you look into adding WPML support for Jetpack custom post types, namely Testimonials and Portfolios?

    Ignore that. I found this which explains how to go about translating custom post types.

    The PHP Notice is still an issue though.

    Cheers,
    Philip

    Thank you for reporting the problem with the notice.
    I will escalate this for our developers to fix.

    Our developer provided a quick fix for this issue – it will be included in the next version, but if this annoys you – you can go to the file woocommerce-multilingual/woocommerce_wpml.class.php
    and in the function: documentation_links
    change

    function documentation_links(){
            global $post, $pagenow;
    
            $get_post_type = get_post_type($post->ID);

    to:

    function documentation_links(){
            global $post, $pagenow;
    
            if( is_null( $post ) )
                return;
    
            $get_post_type = get_post_type($post->ID);

    Thread Starter Philip Arthur Moore

    (@philiparthurmoore)

    That was quick. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice Generated on Jetpack Testimonials Pages’ is closed to new replies.