New Landing How can we help? Themeforest Theme Support Supreme Swift Page Builder Portfolio, add random post.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Supreme
  • #4636
    Maurizio.Lattanzio
    Member
    Post count: 174

    Peraphs I  have tried in previous support page, but I try to ask again If it possible or if there is a solution.

    I’ve Portfolio pages used to  list some turistic  place. In this page I’ve various element to create the page and in the bottom  Portfolio Element to list other porfolio post.

    I’d like like that porfolio element take other portfolio post in random mode.

    Exscuse me, but it’s the only thing that for me it’s a problem and for me it’s strategic.

    Can you help me?

    Bye Maurizio. 🙂

    #4665
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi Maurizio,

    This would only switch the order of those portfolios randomly, there’s currently no other way to do it :

    – edit this file: supreme\includes\page-builder\composer\lib\shortcodes\portfolio.php

    – on line 59, you will see the portfolio arguments for the database query

    – you need to add this as the last argument :

    'orderby' => 'rand'

    If this editing sounds like a foreign language, I suggest hiring a freelancer to do it, as you can easily end up breaking your site if you have no clue about it.

    Regards,
    ————————————————————————————————————

    Cosmin
    Support Assistant

    #5030
    Maurizio.Lattanzio
    Member
    Post count: 174

    I understand Language little bit, very very poor my knowledge…but….
    🙂 🙂 🙂
    Thank You, Thank You, Thank You.

    It’s perfect, How I wanted.

    I salute You, Maurizio

    #5134
    Cosmin – SUPPORT
    Member
    Post count: 3851

    You are welcome Maurizio 🙂

    If you like the product and support, please do rate the theme in your ThemeForest Download section, we would greatly appreciate it!

    Regards,

    ————————————————————————————————————

    Cosmin
    Support Assistant

    #6902
    ixn_neelam
    Member
    Post count: 5

    Hi Cosmin,

    ‘rand’ works perfectly..

    I also wanted to have portfolio items in descending order by post date.. so can you please guide me…

Viewing 5 posts - 1 through 5 (of 5 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