PRIORITY – How to configure property images into a slider?

Easy Property Listings WordPress Real Estate Plugin Forums Priority Support PRIORITY – How to configure property images into a slider?

Viewing 15 posts - 1 through 15 (of 47 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #4611
    chris
    Spectator

    Hi Merv,

    I am trying to set up the images for each property as a slider similar to those seen in the showcase sites.

    When viewing the property listing I can see the images in the xml file on the side and the first image is correctly being set as the feature image but none of the other images seem to go anywhere from here.

    What can we do to get the images to go into a slider?

    Cheers mate,
    Chris

    #4665
    Merv Barrett
    Keymaster

    We used Soliloquy WP slider plugin and the dynamic add on.

    Once installed you can use a function in your theme’s functions.php file to override the default image with the dynamic slider.

    Basically add the plugin and dynamic add on, adjust the slider settings in the dashboard as this is how you can set it to operate by default. The dynamic add on allows you to pass other settings too if you want to have 3 different dynamic sliders happening for instance.

    Here is the code to place in your functions.php file that will replace the EPL default image with your fancy slider.

    <?php
    function rec_replace_epl_featured_image() {
    
    	$post_id = get_the_id();
    	soliloquy_dynamic( array( 'id' => $post_id, 'width' => '1600',  'height' => '500', 'size' => 'full'  ) );
    }
    // Adds the soliloquy slider to the image hook
    add_action( 'epl_property_featured_image' , 'rec_replace_epl_featured_image' , 1 );
    
    // Removes the default featured image else you will have a slider and featured image
    remove_action( 'epl_property_featured_image' , 'epl_property_featured_image' , 1);
    >

    You can use other sliders that support shortcodes and no post id. In the example replace the soliloquy_dynamic () function with:

    echo do_shortcode( '[FANCY_SLIDER_SHORTCODE]' );

    This only works if the images are attached to the listing and the slider does in fact support using attached images to create a slider gallery.

    #4848
    chris
    Spectator

    Hi Merv,

    Thanks for the reply. I have installed Soliloquy and the Dynamic Add On plugins but I am still missing something.

    When I look in the media library I can see that the images have been uploaded to the relevant posts. They don’t appear in the property listing but I am guessing that is okay because the reference exists in the image itself.

    So I am unsure how the slider gets created and what steps I need to take to set it up. The above function is in the functions.php file.

    I have created a slider using the Soliloquy ‘Add Slider’ button in the post and the short code [soliloquy id=”209″] appeared. However there is still no slider in place but the feature image still appears in both the Property listing and on the edit listing page.

    Where to from here?

    Thanks again for your help.
    Chris

    #5066
    chris
    Spectator

    G’day mate,

    Any answer on this one yet?

    Cheers,
    Chris

    #5067
    Merv Barrett
    Keymaster
    This reply has been marked as private.
    #5080
    chris
    Spectator

    Hi Merv,

    Thanks for getting back to me. The function is in the functions.php file at the bottom of all other functions. Should this automatically add the images attached to the listing to the dynamic slider?

    Chris

    #5081
    Merv Barrett
    Keymaster

    Yes it should but perhaps something is set incorrectly. Please provide WordPress admin and FTP access so i can take a look.

    Provide details here and press the Set as private reply below

    #5082
    chris
    Spectator
    This reply has been marked as private.
    #5100
    chris
    Spectator

    Hey man, if we pay the $120 can we get the slider implemented by Friday?

    #5101
    Merv Barrett
    Keymaster

    Yes that is not a problem

    #5178
    Merv Barrett
    Keymaster
    This reply has been marked as private.
    #5211
    chris
    Spectator
    This reply has been marked as private.
    #5344
    chris
    Spectator
    This reply has been marked as private.
    #5422
    Merv Barrett
    Keymaster
    This reply has been marked as private.
    #5431
    chris
    Spectator
    This reply has been marked as private.

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 15 posts - 1 through 15 (of 47 total)
  • The forum ‘Priority Support’ is closed to new topics and replies.