New Landing How can we help? Themeforest Theme Support Clique Changing order of portfolio items

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Clique
  • #14589
    carlywight
    Member
    Post count: 8

    Hello!

    Is it possible to change the order of portfolio items?
    I’ve gone ahead and created items for a whole heap of projects but have now realized they’re coming out in date order.

    Thanks,

    Carly

    #15126
    Melanie – SUPPORT
    Member
    Post count: 11032

    In the file sf-functions.php you will find this code

    $portfolio_args=array(
    			'post_type' => 'portfolio',
    			'post_status' => 'publish',
    			'paged' => $page,
    			'portfolio-category' => $category_slug,
    			'posts_per_page' => $item_count
    			);
    

    Change it to

    $portfolio_args=array(
    			'post_type' => 'portfolio',
    			'post_status' => 'publish',
    			'paged' => $page,
    			'portfolio-category' => $category_slug,
    			'posts_per_page' => $item_count,
    'orderby' => 'title', 
    'order' => 'DESC'
    			);
    

    to order them by title

    Cheers!

    #19344
    carlywight
    Member
    Post count: 8

    Thanks Melanie.
    Is there a way to manually order them though? I don’t want either alphabetical or date order.

    Have a great day!

    #19655
    Melanie – SUPPORT
    Member
    Post count: 11032

    You can try the plugin “post types order” ๐Ÿ™‚

    #19735
    carlywight
    Member
    Post count: 8

    Perfect. ๐Ÿ™‚

    #19884
    Melanie – SUPPORT
    Member
    Post count: 11032

    Glad to hear it worked! ๐Ÿ™‚ Cheers

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