Thank you very much for a cool template :)
I was wondering if it would be possible in a future update to add extra functionality to the portfolio sorting.
It would be very nice if you could add the option to select: “Item order: Random”
See this screenshot: https://screencast.com/t/TAHWJAuVK
It would create dynamic content so it is not always same items that are shown.
Kind regards
]]>thanks for kind words, we’re very happy you like our theme.
It’s actually very interesting idea so we’ve added it to our “updates” todo list and very probably we will add it into the next update. Please keep an eye on our twitter / facebook / themeforest to know when update is released.
PS: if you are satisfied with our theme or support you always can rate our work to motivate us and to create even better things ;) But be careful, we accept only 5 star rating ;)
Cheers
A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market
I was wondering if you’re already had plans to implement this feature :) ?
Regards,
Chris
This change did not make it to one of the updates but it can be easily achieved in less than 5 minutes.
Please have a look at this topic:
We just need to override the query and add 'orderby' => 'rand'
to it. So from the original query:
1 2 3 4 5 6 7 8 9 10 11 |
// Get all Portfolio posts $wpbp = new WP_Query( array( 'post_type' => 'portfolio-post', 'posts_per_page' => $sc_atts['per_page'], 'paged' => $paged, 'order' => $order, 'post_status' => 'publish', 'post__not_in' => $p_not_in, 'tax_query' => $tax_query ) ); |
We need to make:
1 2 3 4 5 6 7 8 9 10 11 12 |
// Get all Portfolio posts $wpbp = new WP_Query( array( 'post_type' => 'portfolio-post', 'posts_per_page' => $sc_atts['per_page'], 'paged' => $paged, 'order' => $order, 'orderby' => 'rand', 'post_status' => 'publish', 'post__not_in' => $p_not_in, 'tax_query' => $tax_query ) ); |
Hope this helps you achieve the desired outcome.
Cheers
A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market
To see all options of “orderby” value check this.
https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Cheers
A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market
A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market