Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author keesiemeijer

    (@keesiemeijer)

    Hi IlTimpa

    Can you post how you use the shortcode with the do_shortcode() function?

    Thread Starter IlTimpa

    (@iltimpa)

    here is my code. Look that it runs for the main language

    echo do_shortcode(‘[related_posts_by_tax taxonomies=”post_tag” format=”thumbnails” ]’);

    Plugin Author keesiemeijer

    (@keesiemeijer)

    Can you put this in your theme’s functions.php for testing.

    // this will display the shortcode even if no results where found
    add_filter( 'related_posts_by_taxonomy_shortcode_hide_empty', '__return_false' );

    Does it display “No related posts found”?

    Thread Starter IlTimpa

    (@iltimpa)

    yes it does

    Plugin Author keesiemeijer

    (@keesiemeijer)

    Are you sure there are other (secondary language) posts that have a post thumbnail and have at least one or more terms in common with the current (secondary language) post.

    Can you download this debug class, unzip it and add it to the plugins folder of your site. Activate the debug plugin at wp-admin > Plugins.
    It adds debug information in the footer of your site. Only admins can see this debug information.
    https://gist.github.com/keesiemeijer/0f8f3b5ee9cea418cda6/download#

    Paste the debug info here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘shortcodes and WPML’ is closed to new replies.