Tagged: portfolio sorting
-
AuthorPosts
-
November 7, 2015 at 4:19 pm #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 ago by keeslamper.
November 9, 2015 at 6:26 pm #532812Hi 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!
ElliottNovember 9, 2015 at 11:00 pm #532945Elliott,
You must can login now! Sorry.
I’ve tried the sort options but it doesn’t work. Hope you can help me!Regards,
keesNovember 10, 2015 at 6:11 pm #533519Hi!
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,
ElliottNovember 10, 2015 at 6:13 pm #533526Thanks! I’m try tonight and let you know if it works!
November 12, 2015 at 9:54 am #534634I’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.
November 13, 2015 at 9:46 pm #535730Hi!
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,
ElliottNovember 13, 2015 at 9:51 pm #535732Can you send me an screenshot where you changed? I don’t understand..
November 16, 2015 at 6:52 am #536317Hi!
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,
IsmaelNovember 16, 2015 at 8:58 am #536376Ismael,
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 CX80Look here for the results. http://tractor.serv10.wpbouwlocatie.nl/overzicht-origineel-weidemann/
November 18, 2015 at 8:39 am #537865Hey!
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,
IsmaelNovember 18, 2015 at 8:44 am #537874Ismael,
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,
keesNovember 23, 2015 at 3:09 pm #540893Hey!
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,
AndyNovember 24, 2015 at 12:51 am #541272Andy, 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.
November 24, 2015 at 1:18 pm #541559Hey!
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,
AndyNovember 24, 2015 at 1:32 pm #541577Andy, that doesn’t work. I fill in order numbers but for 1160 ehoftrac it doesn’t work!
November 24, 2015 at 2:10 pm #541608Hey!
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!
AndyNovember 27, 2015 at 3:49 pm #543669Andy, it’s still not working! Can somebody please fix it?
November 30, 2015 at 4:30 pm #544590Hey!
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,
AndyDecember 1, 2015 at 1:39 pm #545142The 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?
December 3, 2015 at 4:24 am #546225Hi!
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,
IsmaelJanuary 13, 2016 at 1:07 am #564237Guys…. 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,
KeesJanuary 13, 2016 at 9:48 am #564454Hi!
ftp login does not work for me. I tried port 21. Can you check please?
Best regards,
AndyJanuary 13, 2016 at 10:10 am #564465Can you send me your IP Andy? Maybe you’re blocked. The credentials are correct.
January 15, 2016 at 2:00 am #565825Any progress guys?
January 18, 2016 at 3:54 am #566872Hi!
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,
IsmaelJanuary 18, 2016 at 3:56 pm #567255Did you edited the child-theme? I use enfold-child. Off course you’re connecting to the right server.
January 19, 2016 at 4:30 am #567569Hi!
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,
IsmaelJanuary 21, 2016 at 10:06 am #569259Ismael, 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…..
January 23, 2016 at 6:10 am #570463Hi!
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 -
AuthorPosts
- The topic ‘Problem with sorting portfolio items’ is closed to new replies.