WordPress.org

Ready to get started?Download WordPress

Forums

Related Links
Compatibility with qtransalte (1 post)

  1. albertibanyez
    Member
    Posted 1 year ago #

    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.

    bye!

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

    http://wordpress.org/extend/plugins/related-links/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.