Related Links
Compatibility with qtransalte (1 post)

  1. albertibanyez
    Posted 3 years ago #

    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 ;)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Related Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.