Support » Plugin: Related Links » Compatibility with qtransalte

  • Hello!
    First of all congratulations for the plugin, is really useful!
    When I used it I had some incompatbilities with the qtranslate plugin for instance the title of the post appears three times in the blog, and also in the backend.
    I thought it was for the ‘post_content’, so I changed some lines from related-links.php:

    // Check if the post exists
    				$found_post = get_post( $id );
    				$language = apply_filters('the_title',$found_post->post_title);
    				if( !empty( $found_post ) && $found_post->post_status != 'trash' && $found_post->post_status != 'draft' )
    					// Push posts values
    					if( $post_type == get_post_type($id) || empty( $post_type ) )
    						$values[] = array('id' => $id, 'title' => $language, 'url' => get_permalink($id), 'type' => $found_post->post_type);

    And I’ve solved it in the frontend. Hope it will be useful for someone.


    P.D.: If anyone know how to solve in the backend it will be perfect 😉

  • The topic ‘Compatibility with qtransalte’ is closed to new replies.