Kobaru
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?As usual I was pretty sure this problem wasn’t a “Getting started” issue.
As usual I was wrong …Marked as resolved ??
Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?Yes ! So many times YES !
I always have problem identifying things like this, I thought this was code problem ??
Thank you for your patience and your help !!
If I had something to say : Polylang is very interesting, but few options are REALLY not easy to find (or guess). Just like language in menu creation (you need to add it from screen option in wordpress menu section)
Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?Oh excuse me, it’s just over it, I already have add_action. Abd Polylang still not works on these custom posts ??
I got the complete Custom post type, but no translation option : here is the test screenshot => https://puu.sh/iAKhJ/2644925afd.png
Everything is working really fine, ACF, Custom Post Type, doing the job just like I want, BUT there’s NO TRANSLATION OPTION, that’s the only thing I need / want, to have the translation option of Polylang, on my custom post type. And why the hell is it so hard ? I don’t get it ??
Here is my updated functions.php so you can see it fully : https://gist.github.com/pierretusseau/6f5b861378c38db82b0e
edit : Here is my Custom Post Type example (private, you need the URL)
https://www.holidayinn-strasbourg.fr/event/test/
If you try to select FR or EN in the language, it just sends back to home
(which make sens, since there’s no language linked to this article)Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?I tried something like this : https://gist.github.com/pierretusseau/c6f4fb237fd374a3d257
in functions.php
But obviously this is not working ^^”
Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?I uses FoundationPress to create themes.
I built this CPT from scratch (copy / paste code from codex, etc.)in CPT args there is public=>true
I tried to copy / paste “ppl_get_post_type” from Polylang official documentation. But from there I don’t understand how it works.
Here is my code (in custom-post.php, foundationpress file) : https://gist.github.com/pierretusseau/f5a752b97a2f97a6fef1
The code I copied/paste from the official documentation you gave me doesn’t work WITHOUT ANY CHANGE, because I don’t get how it works…
Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?Well, I can’t edit my last message, so I’ll just write it down here :
I’ve read multiple times what you sent to me, I don’t understand it (maybe because I’m not native english, I don’t know …)
The fact is that, reading this paragraph I learn that I only have to set ‘public’ on true, it’s exactly what I have right now, public => true,
See screenshot here https://puu.sh/izC2l/6b259425eb.png
I used a lot of things I don’t really know, so I can’t see where’s the problem here ??
edit : I copied the content of the link you gave me into functions.php (or action.php in Foundation, to be more precise)
Forum: Plugins
In reply to: [Polylang] Custom Post Type, no translation avaible ?I already found that many times…
Well, I’m sorry but I did not understand anything about this, I tried to find “ppl_get_post_types” function in Polylang folder.
I found 3 times “ppl_get_post_type” in differents files, but now what ? I don’t understand anything about plugins or how it should work.
I don’t get why custom post types doesn’t get automaticly polylang like anything else in my theme …
Forum: Plugins
In reply to: [mb.YTPlayer for background videos] www.youtube.com/devicesupportWell, I came here, read your last 2 posts. Was ?? then ??
So thanks for quick resolution, I love your JS. Even if I’m not using actually the WP Plugin.
Forum: Plugins
In reply to: [Polylang] Relative menu linksThis was only this …?
I NEVER noticed this sub menu in WordPress UI. And I’d never thought this would hide pages for such important things as pages in menu page list.
This is very frustrating, but rewarding to finally get to know how to do those menus.Thanks for the support, and hopefully it works perfectly, thank you again ??
Forum: Plugins
In reply to: [Polylang] Relative menu linksOk this is the URL you asked :
Forum: Plugins
In reply to: [Polylang] Relative menu linksI think the problem come from here… While I have a translation of my page “Petit déjeuner” per exemple => “Breakfast”
I can’t link a menu item to the translated version of the page, ’cause it doesn’t exists in my page list !
So I linked to the “Petit déjeuner” page and renamed the menu item “Breakfast”.
I don’t get how this could work in anyway, but because I don’t have any other page to link, I don’t see how I could do that…
The fact is that I COULD use absolute links (ex : “https://www.mysite.com/?p=9” or “[…]/breakfast” but I don’t WANT to do that, for many reasons, the main is that I’ll have to reuse this theme or other websites, and I NEED it to be relative, WITH Polylang.Sending the test serveur URL soon
Forum: Plugins
In reply to: [Polylang] Relative menu linksI’ll upload it later (right now I’m at work, working on local)
But I’ve spotted an other problem, I copied Polylang in the FTP folder plugin, and migrated my DB like I always do, but obviously Polylang need something else…Forum: Plugins
In reply to: [Polylang] Relative menu linksSure, my default language is French, so it looks like this : https://puu.sh/gjhtU/b535662426.png
But it’s still not working properly.
I’d just like that when I’m in english “mode” my menu sends back english urls.
But even if I’m on an english page, with menu translated in english, the links in the menu send back to french version of the page ??EDIT : it was already done, btw, to be clear, I changed nothing actually