How to load rtl.css file without changing language to Persian in WordPress?

# if you want to enqueue your style in you theme, rtl or else function theme_enqueue_scripts() { # enqueue style in your theme wp_register_style( ‘rtl’, get_template_directory_uri() . ‘/css/rtl.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘rtl’ ); } add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_scripts’ ); # if you need enqueue this, just if theme is rtl , copy this function function … Read more

get_categories only getting categories in the main language

I have a solution if you are using WPML for the multi-language support, i have used this code before. Modified after your taxonomy. <?php //Get categories from current language //Uses WPML Multi-language $terms = get_terms(‘jw_portfolio_categories’,’hide_empty=1′ ); if ( !empty( $terms ) ) { $term_links = “”; foreach ( $terms as $term ) { if( $term->term_id … Read more