glanum
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Custom Emails] WPML translationsHi 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.Forum: Plugins
In reply to: [BadgeOS] Achievement image does not changeYes, this line is returning
true
for me.
Thank’s a lot and have a nice day!Forum: Plugins
In reply to: [BadgeOS] Achievement image does not changeThank you very much for this lead! The
badgeos_is_main_loop
function returned true on the page. I bypassed my problem by overriding thebadgeos_do_single_filters
action in the function.php . I simply deleted the call tobadgeos_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!
Forum: Plugins
In reply to: [BadgeOS] Achievement image does not changeWe 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 functionget_the_post_thumbnail
from the post-thumbnail-template.php file in wp-includes folder.Forum: Plugins
In reply to: [BadgeOS] Achievement image does not changeThe 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.