Please see site http://www.britishartportfolio.co.uk/contemporary-art/ if you click onto Anna Bianchi thumbnail you will a number of pictures of this artist. We have used the portfolio grid to display these images. Against each image is a portfolio category we define the Artist : Anna Bianchi and below the artist a sub category of SOLD or AVAILABLE WORKS and this works fine. However the only issue is that when you click onto the portfolio pages of images the sort selection is defaulting to “ALL”. The client wants this to defult to AVAILABLE WOKS can you please help
Peter
Hey condonpb,
Please try adding this at the very end of your themes / child themes functions.php file:
The below code will always trigger Available work.
function select_portfolio_filter(){
?>
<script>
jQuery( window ).load(function() {
jQuery('.inner_sort_button:eq(1)').click();
});
</script>
<?php
}
add_action('wp_head', 'select_portfolio_filter');
Best regards,
Vinay