Quantcast
Channel: polylang – WordPress.org Forums
Browsing all 11471 articles
Browse latest View live

morten66 on "[Plugin: Polylang] Filtering posts in blog page by language and...

Ok. Problem solved, by dirty solution, but it works, just placed IF statement inside pagination code : <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array(...

View Article


BibiDeCarli on "[Plugin: Polylang] Count Post in Specif Langue"

Hi guys, Noob question. I'm trying to show the post count but its showing all my posts (I have it in English and Portuguese). <?php $count_posts = wp_count_posts(); echo...

View Article


dxage on "[Plugin: Polylang] "Posts" page shows both languages"

Hi again, I've just noticed that when I've suppressed: query_posts($query_string);, I assume by adding it to comments: //query_posts($query_string); default language disappeared. Now I only see posts...

View Article

dxage on "[Plugin: Polylang] "Posts" page shows both languages"

hm, it's strange. I've logged out of WP-admin and on first click posts where there, but after I tried to switch language they disappeared. Now my default language (croatian) doesn't show posts and...

View Article

perlajuwelen on "[Plugin: Polylang] Not all fields translated"

Hi, I activated a few days a go the plugin Polylang to make my theme Trego multilanguage. It doesn't translate all fields of the theme and woocommerce....

View Article


Chouby on "[Plugin: Polylang] Count Post in Specif Langue"

Your first instruction does not get the number of posts but a WP_Query object. You can't display it. See http://codex.wordpress.org/Class_Reference/WP_Query for more information. You can use an...

View Article

Chouby on "[Plugin: Polylang] Not all fields translated"

Is Polylang compatible with my purchased theme Trego? I don't know this theme and can't support non-freely available themes. Or do I just have to add the necessary language files of my theme? At least...

View Article

BibiDeCarli on "[Plugin: Polylang] Count Post in Specif Langue"

Thanks Chouby, but I think I don't know how to use it... I've tried <?php global $polylang; $numpost = $polylang->model->count_posts('en'); echo $numpost?> and shows = 0.

View Article


Trypjon on "Polylang lang switcher output"

I have this: <ul> <li class="lang-item lang-item-10 lang-item-pl current-lang"><a hreflang="pl" href="#website#"><img src="#website#/wp-content/plugins/polylang/flags/pl_PL.png"...

View Article


Tigerbright on "[Plugin: Polylang] Cannot change theme options"

Hi, Hope you can help me put with this. I have two languages installed, German and English. When I go to theme options ---styling---and try and change the Header top background colour, only the English...

View Article

Chouby on "[Plugin: Polylang] Count Post in Specif Langue"

Sorry. That's a bad usage of my own function :( The correct usage is: <?php global $polylang; $numpost = $polylang->model->count_posts($polylang->model->get_language('en')); echo...

View Article

BibiDeCarli on "[Plugin: Polylang] Count Post in Specif Langue"

Thank you! :)

View Article

BibiDeCarli on "[Plugin: Polylang] Count Post in Specif Langue"

[resolved]

View Article


Chouby on "Polylang lang switcher output"

You can build your own language switcher by using output of the function pll_the_languages with the 'raw' argument.

View Article

Chouby on "[Plugin: Polylang] Cannot change theme options"

I can't help with non freely available themes.

View Article


Tigerbright on "[Plugin: Polylang] Cannot change theme options"

Hi Chouby, I understand that - I was just wondering though if you could give me a few tips on Polylang usage. It is probably nothing to do with my theme - Perhaps I'm using your plugin incorrectly...

View Article

EMESofficial on "[Plugin: Polylang] "Posts" page shows both languages AGAIN...

Hello, My site: soroczynski.com In my index I've have got: <?php get_header(); ?> <?php /** Themify Default Variables * @var object */ global $themify; ?> <!-- layout --> <div...

View Article


EMESofficial on "[Plugin: Polylang] "Posts" page shows both languages AGAIN...

$query_string = array_merge($GLOBALS['wp_query']->query_vars, $query_string); // don't reset other query_vars! I've changed this to my names from index.php When I putting it under:...

View Article

EMESofficial on "[Plugin: Polylang] "Posts" page shows both languages AGAIN...

Now my code looks like that: <?php global $query_string; $query_string = array_merge($GLOBALS['wp_query']->query_vars, $query_string); // don't reset other query_vars! query_posts( apply_filters(...

View Article

internationils on "[Plugin: Polylang] Permalinks and default pages"

1. and 2. - something seemst to be weird on my end, I may reinstall and try on a clean site. 3. I have a site with static pages page1, page2, and page3, all in english. Everything works normally. Now I...

View Article
Browsing all 11471 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>