Kubzon
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Search Events function not workingOK, I found what causing problems. Maybe it could be useful for others with similar issue. In my theme was function which exclude custom post types from search results 🙂
Thank you for your help. Problem solved.Forum: Plugins
In reply to: [The Events Calendar] Search Events function not workingHi, thank you for your tips. One more thing that I realized – search result shows but after refresh (f5) or secondary click in “Search button” or if I press enter one more time.
In browser console log I dont see any errors…
Forum: Plugins
In reply to: [The Events Calendar] Search Events function not workingI changed theme and search function worked but how can i check what causing problem in my theme?
Forum: Plugins
In reply to: [Contact Form 7 - Post Fields] Value-field – title + meta_keyI tried something like this:
[post_select post_select-900 tribe_events_cat:!zakonczone value-field-meta-key:_EventStartDate|title posts-number:-1 publish post-type:tribe_events tax-relation:OR value-field:meta orderby:title order:DESC “%title% – %_EventStartDate%”]
but it doesnt work.
value-field-meta-key:_EventStartDate|title
but I received e-mail only with date, no title. Maybe wrong meta key for cutom post title?
- This reply was modified 4 years, 4 months ago by Kubzon.
Forum: Plugins
In reply to: [Polylang] Translator roleOk, my mistake durining upload file – but after seeing error message ‘You are not allowed…’, post is sill updated or published.
- This reply was modified 9 years, 5 months ago by Kubzon.
Forum: Plugins
In reply to: [Polylang] Translator roleI’m doing something wrong but i don’t know what:
– I’ve created role ‘translator’;
– I’ve changed menu id and language code in function;
…and nothing happens… Maybe i missed something? Can you have a look on this code below? Thank you for your help.function limitTraducteur( $post_id, $post, $update ) { $usermeta = wp_get_current_user(); if (in_array("translator", $usermeta->roles) && isset($_POST) && count($_POST)>0) { // If it's a menu, block the role to a specific ID menu if (isset($_POST["menu"]) && $_POST["menu"]!=20) { echo "Error: You are not allowed to edit this menu. Please select the Polish menu."; echo "<br/><br/><a href='javascript:history.go(-1)'>Back</a>"; exit; // For the other content than menu } elseif ($_POST["post_lang_choice"]!="pl" && $update==true && !isset($_POST["menu"]) && $_POST["menu"]!=20) { echo "Error: You are not allowed to edit a content in a different language than Polish."; echo "<br/><br/><a href='javascript:history.go(-1)'>Back</a>"; exit; } } } add_action( 'save_post', 'limitTraducteur', 10, 3 );Forum: Plugins
In reply to: [Polylang] Translator roleCan you explain how to do that? – I don’t know much about hooks…
Forum: Plugins
In reply to: [Polylang] Translator roleIs there something changed in this issue? Polylang is very useful and friendly for users but without possible to restrict page modification/creation to a specific language for a specific user role, it’s seems uncompleted…
If I change the Capabilities for one of my administrators (ex. german) it works in all languages – i can’t restrict access for one language and for other no.