Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207133

    Hi,

    I have a portfolio with some categories, but I’d like to display the categories in a specific order (“Toutes les galeries” then “Initial”).
    How possible ?

    http://www.drawingnowparis.com/?page_id=1989

    #207196

    Hey totofunk!

    You can try using a plugin like this one to change the order of your portfolio items in WordPress http://wordpress.org/plugins/simple-custom-post-order/

    Best regards,
    Devin

    #207766

    actually I already use this plugging and it works fine.
    The problem is that I want to change the order of my categories in the sorting function itself.
    because in French it displays “Fresh / Initial / Toutes les galeries” and in English it is the opposite : All Galleries / Fresh / Initial. (I removed the “All” sorting function)

    #207827

    Hi!

    Edit config-templatebuilder > avia-shortcodes > portfolio.php, find this code on line 442:

    //get all categories that are actually listed on the page
    			$categories = get_categories(array(
    				'taxonomy'	=> $params['taxonomy'],
    				'hide_empty'=> 0
    			));

    Replace it with:

    $categories = get_categories(array(
    				'taxonomy'	=> $params['taxonomy'],
    				'hide_empty'=> 0,
    				'orderby' => 'name',
    				'order' => 'DESC'
    			));

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘sorting portfolio items : how to display categories in a different order ?’ is closed to new replies.