WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
[resolved] Submit or reset returns page in default language (7 posts)

  1. thatwastaxing
    Member
    Posted 2 years ago #

    Hi scribu,

    Thanks for the plugin!

    I'm using it on a bilingual (English and Spanish) site using qtranslate. However, when I hit submit or reset, the site always switches back to the default language (English).

    I see you have some filters up on your wiki but how do I get this to work with qtranslate?

    Thanks!

    http://wordpress.org/extend/plugins/query-multiple-taxonomies/

  2. thatwastaxing
    Member
    Posted 2 years ago #

    Got it. Was missing a trailing slash:

    function my_qmt_base_url( $base ) {
        return qtrans_convertURL($base).'/';
    }
    add_filter( 'qmt_base_url', 'my_qmt_base_url' );
  3. Deyneko
    Member
    Posted 2 years ago #

    I have problem - when subscribe reply site goes to default language. May be your method could help.
    Could you more detailed explain where to exactly I need to insert it?

  4. thatwastaxing
    Member
    Posted 2 years ago #

    You need to download, install and activate the plugin qtranslate (http://wordpress.org/extend/plugins/qtranslate/)

    Then you need the code I wrote above and put that in your theme's functions.php file.

  5. Deyneko
    Member
    Posted 2 years ago #

    Thank you thatwastaxing for answer.
    Yes, I downloaded the plugin and it works on my site (http://deyneko.com)
    But terrible sorry for question I am absolutely have not any knowledges in php...
    In what place exactly (in functions.php) I need put it?

    This is my code:

    ', 'twentyten' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	// Area 6, located in the footer. Empty by default.
    	register_sidebar( array(
    		'name' => __( 'Fourth Footer Widget Area', 'twentyten' ),
    		'id' => 'fourth-footer-widget-area',
    		'description' => __( 'The fourth footer widget area', 'twentyten' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    }
    /** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
    add_action( 'widgets_init', 'twentyten_widgets_init' );
    
    /**
     * Removes the default styles that are packaged with the Recent Comments widget.
     *
     * To override this in a child theme, remove the filter and optionally add your own
     * function tied to the widgets_init action hook.
     *
     * This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1
     * to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles,
     * but they won't have any effect on the widget in default Twenty Ten styling.
     *
     * @since Twenty Ten 1.0
     */
    function twentyten_remove_recent_comments_style() {
    	add_filter( 'show_recent_comments_widget_style', '__return_false' );
    }
    add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' );
    
    if ( ! function_exists( 'twentyten_posted_on' ) ) :
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     *
     * @since Twenty Ten 1.0
     */
    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    			get_permalink(),
    			esc_attr( get_the_time() ),
    			get_the_date()
    		),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_author_posts_url( get_the_author_meta( 'ID' ) ),
    			sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    			get_the_author()
    		)
    	);
    }
    endif;
    
    if ( ! function_exists( 'twentyten_posted_in' ) ) :
    /**
     * Prints HTML with meta information for the current post (category, tags and permalink).
     *
     * @since Twenty Ten 1.0
     */
    function twentyten_posted_in() {
    	// Retrieves tag list of current post, separated by commas.
    	$tag_list = get_the_tag_list( '', ', ' );
    	if ( $tag_list ) {
    		$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    	} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
    		$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    	} else {
    		$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    	}
    	// Prints the string, replacing the placeholders.
    	printf(
    		$posted_in,
    		get_the_category_list( ', ' ),
    		$tag_list,
    		get_permalink(),
    		the_title_attribute( 'echo=0' )
    	);
    }
    endif;
  6. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    But terrible sorry for question I am absolutely have not any knowledges in php...

    Then how about learning a little bit: PHP 101: PHP For the Absolute Beginner

    If not, then don't waste other people's time. Hire someone who already knows or ask for help on WP Questions.

  7. Deyneko
    Member
    Posted 2 years ago #

    scribu,
    please calm :) I will not want to spend your time and why did you spend your time for your message.... It is simple - don't want to help - do not write ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic