brian1037
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Plugin completely breaks PolylangOkay so I’ve done a bit more digging and you’ll be relieved to hear that I don’t think issue #2 is related to your plugin anymore. It was kind of the perfect storm of errors the other day, and seeing how Simple Taxonomy Ordering was causing some Polylang issues, I concluded that the other Polylang issues were from the same source. Now I can’t seem to reproduce the issue #2 anymore.
I can also confirm it’s cleaning up after itself in the termmeta table. My apologies for that.
As for other term ordering plugins that work with Polylang, this is the one I know works well: https://en-ca.ww.wp.xz.cn/plugins/custom-taxonomy-order-ne/
It has a less than desirable admin UI unfortunately. That’s why I went with Simple Taxonomy Ordering.
Feel free to mark this topic as resolved. Thanks for your help.
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Plugin completely breaks PolylangAh, that is disappointing to hear, but I understand. It’s too bad because Simple Taxonomy Ordering has the best UI for reordering terms. All the other plugins use a disgusting extra page to manage the order. I really liked this plugin.
At this point I would be happy with any kind of solution that can undo what the plugin did to the database.
I guess that I’ll have to resort to another plugin for this task. There are others that don’t conflict with Polylang… might be worth looking into how they do it :p Just food for thought.
Thanks again for your time
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Plugin completely breaks PolylangI’m so used to working with Polylang that it didn’t even occur to me to include my Polylang settings :p
I’ve set two languages in Polylang, English being the first language, and French being the second one.
Under URL Modifications in the Polylang settings, I’ve set “The language is set from the directory name in pretty permalink” on the left, and “Remove /language/ in pretty permalinks” on the right. Lastly, the “The front page url contains the language code instead of the page name or page id” is checked. Nothing else under “URL modifications” is checked.
Under Custom post types and Taxonomies in the Polylang settings, I’ve set it to translate the custom post type, and the taxonomies. (I suspect the issue is coming from here).
Nothing is being synchronized by Polylang.
And the WordPress permalink structure is set to /%category%/%postname%/.
Thanks!
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Plugin completely breaks PolylangYup, the free version. I should’ve included more details in the first post.
Plugins:
YIKES Simple Taxonomy Ordering 1.2.4
Polylang 2.1.2 (free version)Wordpress 4.7.3 set up as a network, with 4 additional sites installed. The sites are configured as sub-domains. I don’t think this is part of the issue though.
To reproduce the issue, create a template with this code
<? // Template name: Test template $posts = new WP_Query(array( 'post_type' => 'product', // or any post type with taxonomies who's orders are managed by Simple Taxonomy Ordering 'posts_per_page' => -1 )); if( $posts->have_posts() ) : while( $posts->have_posts() ) : $posts->the_post(); echo get_permalink() . '<br>'; endwhile; endif;With Simple Taxonomy Ordering disabled, you get the correct permalinks. For example, it would be http://example.com/en/product/product-slug.
But, when Simple Taxonomy Ordering is enabled, and is configured to reorder a taxonomy registered to the post type, then the URL’s turn into this: http://example.com/product/product-slug. The language slug disappears.
Thanks again for your time
Forum: Plugins
In reply to: [Polylang] Problem with URL’s that contain a date (YYYY-MM-DD)Thank you Chouby for your timely and reliable help as always.
I chose to post this question here instead of the Pro support because yesterday there are no other relevant results on Google for this problem. But now when I search for “the events calendar polylang date url” I see this thread in the first page.
If I had not received help here I would have turned to the Pro support but I always want to help out others however I can 🙂
I’m going to go ahead with Events Maker since this is a timely issue for me. Thanks for the suggestion.
- This reply was modified 9 years, 6 months ago by brian1037.
Forum: Plugins
In reply to: [Polylang] Polylang breaks custom query varThanks man that was it!
Forum: Plugins
In reply to: [Polylang] save_post filterGood point. I was using it as part of a bigger function who’s purpose was to synchronize a single meta field between all of the translations of a post. Basically:
1. User saves a post in the WP Admin and the save_post filter is triggered.
2. I use pll_the_languages() to get all of the site languages.
3. For each language, I use pll_get_post() to obtain the translation of the post that the user saved.
4. I update the meta field of each post translation.
I hadn’t noticed another function that returns off of the site languages, so I used pll_the_languages().
Forum: Plugins
In reply to: [Polylang] Registering string twice breaks other stringsThankfully I was able to get a backup from a coworkers development database. Unfortunately the error happened because of a mistake between myself and my colleague, which I imagine is a realistic scenario. Thanks again for the amazing plugin.
Forum: Plugins
In reply to: [Polylang] pll_save_post_translations() with pagesYou must make sure that both pages are in the correct language first.
Ahh. That’s why the autocomplete wasn’t working. Little brain fart on my part I guess. Everything is good now, thanks for your help and the amazing plugin.
Forum: Plugins
In reply to: [Polylang] PHP error when using multiple taxonomy queriesSilly me, I wasn’t, and updating to 1.6.4 fixed the issue. Thanks for the awesome plugin!
Forum: Plugins
In reply to: [Polylang] Taxonomy pagination in Nav Menu creator not filtering by languageTested 1.5.5.1 and the issue is fixed! Thanks a lot!
Forum: Plugins
In reply to: [Polylang] Taxonomy pagination in Nav Menu creator not filtering by languageOk so I deactivated all plugins and switched to the Twenty Fourteen theme. I now see four pages of pagination in the same spot (it seem like Polylang was able to filter it to two pages before, but since Polylang is now deactivated, I see all 4 pages).
I’m using the built in ‘category’ taxonomy. I have a 55 terms per language, for a total of 165 in all languages. Most of these terms are children of a parent term (but I don’t think that’s important).
Forum: Plugins
In reply to: [Polylang] Custom post type and queriesYou can specify the language in the query like this:
$query = new WP_Query(array(
‘post_type’ => ‘work’,
‘lang’ => ‘en’
));Obviously switch the language slug for the one you need. Polylang should only be returning results in the current site language though. The
langparameter should be used for getting posts from a language different from the current site language.Confirmed having the same problem on WP 4.0. I’ve commented out line 451 and won’t update the plugin until a fix is confirmed.
Forum: Plugins
In reply to: [Polylang] Changing the language redirects to homepagehttp://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
If you’re comfortable editing the code of your theme…
When using pll_the_languages() you can specify it, example:
pll_the_languages(array(
‘force_home’ => 0
));but “force_home” is by default off, so you will probably have to change the “1” that’s already there to a “0”.