[Support request] Blog Excerpt not showing on translated version of website

Home Forums Support [Support request] Blog Excerpt not showing on translated version of website

Home Forums Support Blog Excerpt not showing on translated version of website

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #394082
    Espresso

    Hi Tom,

    I am translating my website in multiple languages with WPML. I have just created the blog page. However it does not show the excerpt for that page but only on the original blog page.

    https://www.espressotranslations.com/blog/
    https://www.espressotranslations.com/it/blog-traduzioni/

    Any idea why this is happening?

    Thanks,
    Dan

    #394268
    Tom
    Lead Developer
    Lead Developer

    Hmm, strange. Any custom functions? Can you try disabling your other plugins one by one?

    #395832
    Espresso

    Nope, nothing changes. This is my functions.php file:

    <?php
    /**
    * Generate child theme functions and definitions
    *
    * @package Generate
    */

    add_filter( ‘generate_fontawesome_essentials’, ‘tu_fontawesome_essentials’ );
    function tu_fontawesome_essentials() {
    return true;
    }

    add_filter( ‘style_loader_src’, ‘generate_remove_cssjs_ver’, 10, 2 );
    add_filter( ‘script_loader_src’, ‘generate_remove_cssjs_ver’, 10, 2 );
    function generate_remove_cssjs_ver( $src ) {
    if( strpos( $src, ‘?ver=’ ) )
    $src = remove_query_arg( ‘ver’, $src );

    return $src;
    }

    add_action( ‘init’, ‘generate_disable_wp_emojicons’ );
    function generate_disable_wp_emojicons()
    {
    // all actions related to emojis
    remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ );
    remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
    remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );
    remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
    remove_filter( ‘wp_mail’, ‘wp_staticize_emoji_for_email’ );
    remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ );
    remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ );
    }

    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
    if ( strpos( $url, ‘jquery.js’ ) ) return $url;
    return “$url’ defer “;
    }
    add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );

    #395951
    Tom
    Lead Developer
    Lead Developer

    Did you try disabling your other plugins one by one to see if one of them is causing it?

    #395956
    Espresso

    Yes all done and tested

    #396250
    Tom
    Lead Developer
    Lead Developer

    It might be worth asking the developers of the translation plugin then, as it must be preventing the_excerpt() function from firing.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.