Viewing 30 posts - 1 through 30 (of 40 total)
  • Author
    Posts
  • #531882

    Hi,

    I’m using your theme a lot and very happy. Now I’ve a problem I can’t fix. I’ve made different categories and add items to the portfolio. I show one category on a page. It work’s fine but I want to sort the items by name. That’s not working. I’ve tried slug, date but no result. I also installed re-order plugin, but not working too. Can you help me?

    Regards,
    Kees

    • This topic was modified 9 years, 1 month ago by keeslamper.
    #532812

    Hi keeslamper!

    The login does not seem to be working for me.

    When you edit the portfolio grid options look near the bottom and you can set them to order by title and set the order to ascending / descending.

    Cheers!
    Elliott

    #532945

    Elliott,

    You must can login now! Sorry.
    I’ve tried the sort options but it doesn’t work. Hope you can help me!

    Regards,
    kees

    #533519

    Hi!

    Hmm, I’m guessing since your using just a bunch of various numbers for the titles WordPress does not know how to sort them alphabetically.

    Since your using portfolio posts what you can do is try ordering them by the page order (or menu order) instead.

    Open up /enfold/includes/admin/register-portfolio.php file and change line 38 from this.

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

    To this.

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

    You should now have a new options area in the top right corner of your screen when editing your portfolio posts which you can use for setting the order. You can give them all a custom order starting from 0 and going up and then in your Masonry element select them to order by “Page order” and it should use order them in the correct way now.

    Best regards,
    Elliott

    #533526

    Thanks! I’m try tonight and let you know if it works!

    #534634

    I’m sorry, no result. I’ve filled in this fields and put the sort order on ‘page order’. But like you can see the 1160 is after the 1240.

    #535730

    Hi!

    Well I changed the 1160 eHoftrac order position to 2 and it moved up so it does appear to be working. Make sure you set an order position for each post.

    Regards,
    Elliott

    #535732

    Can you send me an screenshot where you changed? I don’t understand..

    #536317

    Hi!

    Edit the portfolio item: http://tractor.serv10.wpbouwlocatie.nl/wp-admin/post.php?post=3672&action=edit

    Look for the “Attributen” box. Add the order number in the field then update it.

    Regards,
    Ismael

    #536376

    Ismael,

    It still doesn’t work correct. This are my attritbutes, I also tried 0 till 20:

    0 1140
    1 1140CX
    2 1160
    3 1160 eHoftrac
    10 1240 CX35
    11 1260 CX
    12 1280
    20 1350 CC45
    21 1370 CX
    25 1770
    30 2070 CX50
    31 2070 CX70
    40 3070 CX60
    41 3070 CX80

    Look here for the results. http://tractor.serv10.wpbouwlocatie.nl/overzicht-origineel-weidemann/

    #537865

    Hey!

    I checked one of the portfolio item’s editor and the attribute box is missing. Did you remove it? Try to use this plugin: https://wordpress.org/plugins/post-types-order/

    Regards,
    Ismael

    #537874

    Ismael,

    I’ve changed nothing! I’ve searched again, I see the problem is only on desktop! On mobile version of the website the sorting is correct. Hope you can give me the solution.

    That plugin I’ve tried with no result. But it looks it’s the problem of the theme from showing the pictures, on mobile I see the correct version.

    Regards,
    kees

    #540893

    Hey!

    WordPress’ page attributes does not appear in the link in private content. So it seems you did not activate it correctly. Make sure you follow Elliott’s instructions. You can send us FTP login, then we can take a deeper look into it.

    Regards,
    Andy

    #541272

    Andy, the attributes option is there. And filled in for the first 9 items. Can you please have a look? I’ve made the change in register-portfolio in child and base theme but not any result. The 1160 is after the 12-serie.

    #541559

    Hey!

    finally I can see the Attributes window in your backend. So now go into your portfolio categories, for example edit page in private content. Choose order by putting a specific number into “Attributes->Order” (scroll down and look on the right side). If you put “1” it will appear first, if you put “2” it will appear second, and so on. Check again this page for more information about it: https://en.support.wordpress.com/pages/page-attributes/

    Regards,
    Andy

    #541577

    Andy, that doesn’t work. I fill in order numbers but for 1160 ehoftrac it doesn’t work!

    #541608

    Hey!

    did you try to set an order option to your portfolio items? check out this link: http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/

    Cheers!
    Andy

    #543669

    Andy, it’s still not working! Can somebody please fix it?

    #544590

    Hey!

    can you elaborate please? what exactly does not work for you? what happens when you use the code from my last link? does it change anything?
    I think you need to use a plugin like https://wordpress.org/plugins/post-types-order/ or any other similar plugin with such an option you wish.

    Best regards,
    Andy

    #545142

    The sorting doesn’t work. Like you can see the 1160 eHoftrac is placed AFTER 1280. That’s the wrong sorting.

    I’ve tried it with that plugin but didn’t get it fixed. Can you guys please help to solve?

    #546225

    Hi!

    We need to add the following code in the functions.php file: I’m trying to connect to the FTP server but it’s not working and the Appearance > Editor in the dashboard is not available. Please add this code:

    function avf_custom_post_grid_query( $query, $params ) {
        $query['orderby'] = 'menu_order';
        $query['order'] = 'ASC';
        return $query;
      }
    add_filter( 'avia_post_grid_query', 'avf_custom_post_grid_query', 10, 2);

    Best regards,
    Ismael

    #564237

    Guys…. Can you please help?

    I’ve tried all the given options and plugins, also tried CMS Tree view. It’s not working at all. Can you please have a look? The login is in private.

    Regards,
    Kees

    #564454

    Hi!

    ftp login does not work for me. I tried port 21. Can you check please?

    Best regards,
    Andy

    #564465

    Can you send me your IP Andy? Maybe you’re blocked. The credentials are correct.

    #565825

    Any progress guys?

    #566872

    Hi!

    I modified the files in the server but it didn’t affect the site. I removed the whole header.php file but it didn’t do nothing so I think this is not the correct file server. Are you sure that you gave us the correct ftp server?

    Best regards,
    Ismael

    #567255

    Did you edited the child-theme? I use enfold-child. Off course you’re connecting to the right server.

    #567569

    Hi!

    Yes, I modified the child theme’s header.php file. I commented out this line:

       //get_template_part( 'includes/helper', 'main-menu' );
    

    This should remove the whole header but it didn’t. Is this the correct directory?

    /domains/weidemann.nl
    

    Best regards,
    Ismael

    #569259

    Ismael, that’s the right directory. Is it possible it has to do with the child-theme? I’m using an child-theme. Hope you or somebody can help me, this is the last thing and then it’s finished…..

    #570463

    Hi!

    We are very eager to solve this problem as soon as possible but the fact that we can’t modify the theme via FTP is hampering our debugging process. I renamed the header.php file in the child to disable it and the then modified the parent’s header.php file, commented the same line above which should remove the whole header but it’s not doing anything. Please check it.

    Regards,
    Ismael

Viewing 30 posts - 1 through 30 (of 40 total)
  • The topic ‘Problem with sorting portfolio items’ is closed to new replies.