• Resolved fredhamelin

    (@fredhamelin)


    Hi,
    I’ve been using this plugin for a while with WPML for translations and it was working great until recently. WPML has now stopped supporting the get_page_by_path() function and it has caused problems when two pages (or text blocks) in different languages have the same slug. This plugin could keep working with WPML by changing this line of code at line 266 of text-blocks.php :
    $id = $page->ID;
    with :
    $id = apply_filters('wpml_object_id', $page->ID, 'text-blocks' );
    For now, I’m using similar code in the ‘text_blocks_show_text_block_id’ filter to make it work but it would be great to have this added to the plugin.
    Thank you!

    https://wordpress.org/plugins/reusable-text-blocks/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with WPML’ is closed to new replies.