New Landing How can we help? Themeforest Theme Support Dante Random Carousel Orders

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #145964
    Mike Craycraft
    Member
    Post count: 31

    Hello,

    I am creating a site and would like to show our participants and sponsors in a slider but have them appear in random order. I would like the carousel to just show the featured image (their logo) and that would link to their page that gives the details of their participation.

    I am having hard time figuring out how to do this as most of the carousels are in date order.

    Do you have any suggestions? I have tried all sorts of work arounds using clients, team, portfolio, testimonials, etc and have had no success.

    Thanks,
    Mike

    #146119
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi Mike,

    You want in the Galleries? If so \swift-framework\page-builder\builder\shortcodes\gallery.php You need to edit the args for the query in line #40-#45.

    $gallery_args = array(
    	'post_type' => 'galleries',
    	'post_status' => 'publish',
    	'p' => $gallery_id
    );

    Refer the parameters here: https://codex.wordpress.org/Class_Reference/WP_Query

    Let us know,

    Thanks,
    laranz.

    #146985
    Mike Craycraft
    Member
    Post count: 31

    Hi Laranz,

    I think one solution would be for us to create a team page for each of our participants and sponsors. Here is an example, http://talkabouttc.org/?team=awesome-organization-3 However the team carousel does not link the featured image to the team members profile page, nor does it automatically carousel. So, we are looking at also creating a client page and linking that featured image to the team page.

    Thus, we would want the client carousel to show in random orders.

    I’ve attached a screenshot showing the difference between the team carousel and client carousel options. Just being able to show the client carousel in random order according to the client category I think would be a working solution.

    Thanks,
    Mike

    Attachments:
    You must be logged in to view attached files.
    #146995
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Sorry, I am confused while reading the screenshot. Can you explain in a brief with simple steps. If that possible I will solution.

    Let us know,

    Thanks,
    laranz.

    #147295
    Mike Craycraft
    Member
    Post count: 31

    Hi Laranz,

    Sorry for the confusion.

    If we could get the client carousel to display in random order then I believe that is the easiest solution.

    Thanks,
    Mike

    #147507
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Unfortunately the random display of the Carousel doesn’t work as default, and creating a customization to it it’s a bit complex and because of that it goes outside of our support scope.

    In the meantime I understand why the random is needed and will forward this suggestion to the development team so this can be considered it in a future update.

    Thanks

    -Rui

    #147687
    Mike Craycraft
    Member
    Post count: 31

    Hi Rui,

    Are there any of the carousels that allow for random order that would also allow for the image to link to somewhere else?

    I know the testimonials are random but adding an image to the testimonial doesn’t really work.

    Any suggestions are greatly appreciated.

    Thanks,
    Mike

    #147737
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi Mike,

    Try this, open up \wp-content\themes\dante\swift-framework\page-builder\builder\shortcodes\team-carousel.php in line #31 you saw a query formation, change that to this

    $args=array(
    'post_type' => 'team',
    'post_status' => 'publish',
    'team-category' => $category_slug,
    'posts_per_page' => -1,
    'ignore_sticky_posts'=> 1,
    'no_found_rows' => 1,
    'orderby' => 'rand'
    );

    Let us know,

    Thanks,
    laranz.

    #147739
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    For more query function, refer this codex docs: http://codex.wordpress.org/Class_Reference/WP_Query

    Let us know,

    Thanks,
    laranz.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register