Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #832297

    Hi,
    I run a multilingual WordPress site with the Polylang plugin: https://wordpress.org/plugins/polylang/

    Unfortunately this plugin doesn’t seem to play well with the Avia Slider in the Enfold theme as the slider is not showing any images.

    I think this has to do with a missing lang argument in the get_posts function.

    In the past i have added the lang argument into the set_slides() function like this:

    public function set_slides($ids)
    		{
    			if(empty($ids) && empty($this->config['video_counter'])) return;
    
    			$this->slides = get_posts(array(
    				'lang' => '', 
    				'include' => $ids,
    				'post_status' => 'inherit',
    				'post_type' => 'attachment',
    				'post_mime_type' => 'image',
    				'order' => 'ASC',
    				'orderby' => 'post__in')
    				);

    This fixed the issue in a previous version of Enfold, but with the latest update the problem is back.
    Do you have any advice on how i could best tackle this issue?

    #833305

    Hey heykleinermann,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Best regards,
    John Torvik

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.