Polylang – display one post into 3 categories with different lang [closed]

to retrieve all posts of all languages in a category, you need to desactivate the auto-translate during the request. you can try that : $categories = get_the_category(); $category_id = $categories[0]->cat_ID; remove_filter( ‘get_terms_args’, array( PLL()->auto_translate, ‘get_terms_args’ ), 10, 2 ); $posts = []; foreach (pll_languages_list() as $language_code) { $posts = array_merge( $posts , get_posts([ “category” => … Read more

Helpdesk solution which is not form based

Is it possible within the wordpress framework to create something like what I have tried to explain above? yes, but you’ll need to build it yourself. I created something similar for a project once using contact form 7 plugin and a custom multi-form on a slider using the multi-slide extension. You can also use the … Read more

How to allow multiDatesPicker in wp admin post type?

try now this code <?php function load_requirements() { wp_register_script(‘mdp’, ‘https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.js’); wp_enqueue_script(‘mdp’); } add_action(‘admin_head’, ‘load_requirements’);?> jQuery(document).ready(function($) { $(‘.datepicker’).multiDatesPicker(); });

Google Map not displayed [closed]

It might be that you haven’t set your Google Maps API key. Or, if you have already set an API key then it might be due to any restrictions that you may have set for the API key such as restricting it to a specific domain. You can obtain a Google Maps API key from … Read more

Not able to remove a class from an element using JQuery [closed]

.careerfy-subheader careerfy-subheader-with-bg is not a valid selector for the element you’re trying to remove the class from. Firstly, to select an element based on two classes you need this syntax: jQuery(‘.careerfy-subheader.careerfy-subheader-with-bg’) Notice the . for each class, and that they are attached. This means ‘select an element with both these classes’. The second problem is … Read more

Change Menu Order

If it’s greyed out it’s because you haven’t created a menu yet. Once you give it a name and save it, you should be able to add pages and links to your menu. Once you have links/pages, you can begin to sort the menu by dragging them up or down.

how to add a page to a plugin?

You can use the activation hook and call function wp_insert_post() class MyPlugin { static function install() { $my_post = [ ‘post_title’ => ‘My page title’, ‘post_content’ => ‘My page content’, ‘post_status’ => ‘publish’, ‘post_author’ => 1, // Set author id here ‘post_type’ => ‘page’, ]; wp_insert_post( $my_post ); } } register_activation_hook( __FILE__, [ ‘MyPlugin’, ‘install’ … Read more