wp post carousel for featurd listings

This topic contains 7 replies, has 4 voices, and was last updated by  Paolo 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #47023

    hacaro
    Buyer
    Post count: 54

    Dear support, as per my previews request we need to have a carousel with 4 listing slide in home page. Unfortunately the GD widget can show only one listing each time. We have tries to install the wp post carousel plugin that have this feature, but it does not have featured option. We’ve write to support and they gently share this little customizaTio to try.
    $sql_array[‘meta_query’] = array(
    array(
    ‘key’ => ‘_featured’,
    ‘value’ => ‘yes’
    )
    );

    We have tried also without underscore but nothing. Can you tell us if into $post object we can find the featured variable and it’s name ? Or otherwise where are stored ? Thanks in advance and best regards.

    #47137

    Paolo
    Site Admin
    Post count: 31206

    I’m not 100% sure, but for that to work it should be:

    
    
    
    'key' => 'is_featured', 
    'value' => '1'

    I’ll ask to Stiofan to confirm or give us correct code.

    Thanks

    #47209

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    It’s not really a meta value so i don’t think that will help.

    What i have done is add the ability to show more than one listing slide in our slider, you can replace the two PHP files from out github version to be able to test before the next release if you want.

    https://github.com/GeoDirectory/geodirectory/commit/f2a535ff6ef9765a495215d259ad03be0732368b

    Thanks,

    Stiofan

    #47237

    hacaro
    Buyer
    Post count: 54

    Oh Great Stiofan !! thank you very much i will try it now and then i’ll give you immediate feedback.

    #47239

    hacaro
    Buyer
    Post count: 54

    Oh Stiofan it Works fine ! Thanks a lot for your support 😀

    Regards

    #47788

    sueboothby
    Expired Member
    Post count: 22

    Awesome!

    #47805

    sueboothby
    Expired Member
    Post count: 22

    I used your implementation and it works great except for one thing. On my hompage there are 4 instances of this widget one after another. The widget only displays the first instance and the rest after it come up completely blank.

    Any idea where I should look to fix this?

    #47937

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can only have 1 slider widget per page.

    Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket