Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #260905

    Hey guys,
    my client…who is extremely high maintenance desires that her portfolio items be listed in a specific order.
    I have tried the plugin POT-TYPE-ORDER and it has created a series of problems. From the portfolio page it was pulling in duplicated items, and in some cases items would come up missing – when activated. It’s been an issue that I need to address.

    Do you guys have any solution to having portfolio items listed in a specific order? I could use your help: http://lorenasarbu.com/collection/fall-2014/

    Thanks,
    Justin

    #260945
    #260954

    Does this need to be placed in any particular place within the functions file?

    #261128
    This reply has been marked as private.
    #261151

    Hi!

    Put it at the end of functions.php.

    Is this the plugin you are referring to? it’s weird you are having these issues because many Enfold users reported good results with that.

    Best regards,
    Josue

    #261322
    This reply has been marked as private.
    #261582

    Hi!

    Thank you for the update!

    I’m sorry but the plugin is the only way that you can sort the portfolio posts manually, unfortunately, it is currently incompatible with the masonry element. We cannot provide support for third party plugins or scripts as stated on our support policy due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. What you can do is to enable the post type support for page-attributes.

    Edit includes > admin > register-portfolio.php, find this code on line 38:

    'supports' => array('title','thumbnail','excerpt','editor','comments')
    

    Replace it with:

    'supports' => array('title','thumbnail','excerpt','editor','comments', 'page-attributes')
    

    Add this on functions.php:

    add_filter('avia_masonry_entries_query', 'avia_random_image_query', 10, 2);
    function avia_random_image_query($query, $params)
    {
        if(empty($query['post_mime_type']))
        {
            $query['orderby'] = "menu_order";
            $query['order'] = 'ASC';
        }
    
        return $query;
    }

    Now, go to the Portfolio Items panel then Quick Edit the posts. You’ll see the Order field. You can input the order of the items manually. I’m sure it’ll work because we tested this fix on our end.

    Regards,
    Ismael

    #261642

    Ah Ismael, very informative, very helpful, and right on time buddy. Thank you.
    Justin

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Portfolio Reorder’ is closed to new replies.