Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter glanum

    (@glanum)

    Hi Damian,

    In the String Translation tool of WPML I only see the titles of emails. Is there a way to translate custom contents of emails?

    Best regards,
    The Glanum Agency.

    Thread Starter glanum

    (@glanum)

    Yes, this line is returning true for me.
    Thank’s a lot and have a nice day!

    Thread Starter glanum

    (@glanum)

    Thank you very much for this lead! The badgeos_is_main_loopfunction returned true on the page. I bypassed my problem by overriding the badgeos_do_single_filters action in the function.php . I simply deleted the call to badgeos_remove_to_reformat_entries_title function and the image is displayed correctly. If no achievement image is set, the default achievement image of the achievement type appears.

    My code below:

    function badgeosDoSingleFilters() {
        // check we're in the right place
        badgeos_is_main_loop();
        // enqueue our stylesheet
        wp_enqueue_style( 'badgeos-single' );
        // no worries.. we'll add back later
        remove_filter( 'the_content', 'wpautop' );
        // filter out the post title
        // add_filter( 'the_title', 'badgeos_remove_to_reformat_entries_title', 10, 2 );
        // and filter out the post image
    //    add_filter( 'post_thumbnail_html', 'badgeos_remove_to_reformat_entries_title', 10, 2 );
    }
    remove_action( 'wp_enqueue_scripts', 'badgeos_do_single_filters' );
    add_action( 'wp_enqueue_scripts', 'badgeosDoSingleFilters' );

    Thank you again for your help!

    Thread Starter glanum

    (@glanum)

    We don’t use other BadgeOS add-on, only BadgeOS LearnDash Add-On. We installed LearnDash LMS (version 2.0.5.2) and LearnDash Panel Pro (version 1.5.2) plugins.

    The end_fetch_post_thumbnail_html action is not present in a BadgeOS add-on but in a core WordPress file. It’s called in the native function get_the_post_thumbnail from the post-thumbnail-template.php file in wp-includes folder.

    Thread Starter glanum

    (@glanum)

    The persistent image is visible on the site, on the achievement post page. The update of the image is taken into account in the administration of WordPress, the new image appears in the Achievement Image box.

    The function called on the php template of the achievement post is: badgeos_get_achievement_post_thumbnail.
    Below is the complete code:

    <div class="introduction-block hidden-print">
            <div class="container page-header">
                <h1 class="page-title"><?php the_title(); ?></h1>
                <?php if(badgeos_get_achievement_post_thumbnail( $post->ID ) ) : ?>
                    <div class="featured-image badgeos-item-image">
                        <?php echo badgeos_get_achievement_post_thumbnail( $post->ID, 'post-thumbnail' ); ?>
                    </div>
                <?php endif; ?>
            </div>
    </div>

    We don’t use BuddyPress.

Viewing 5 replies - 1 through 5 (of 5 total)