-
AuthorPosts
-
March 4, 2015 at 11:14 pm #406133
Hi,
How can I limit the left/right navigation between portfolio items, to a single category ?
I currently have 4 categories of portfolio items and it keeps navigating between all categories.Second question, how can I reorder the items so they appear in a correct order ? (for example alphanumerical order)
I tried to use “post types order” plugin but it doesn’t do anything.March 5, 2015 at 7:07 pm #406607Hey ANDRE!
1- Can you please post the link to your website?
2- Please see – http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/Regards,
YigitMarch 5, 2015 at 10:48 pm #406732This reply has been marked as private.March 6, 2015 at 3:22 pm #407005Hey!
Can you please try de-activating all active plugins and check if that helps?
Cheers!
YigitMarch 26, 2015 at 11:42 am #418442Hey,
I have the same problem on enfold 3.1.2.
Have tried the above code, but it does not work – even if I disconnect all plugins.The following code has previously worked
(now it is sorted alphabetically on the page, but if I choose one of the portfolio, it seems that it is sorted by date.)/*filter projets - only show same category */ add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; } /*filter portfolio sorting */ add_filter('avia_post_grid_query', 'avf_custom_post_grid_query'); function avf_custom_post_grid_query ( $query ) { $query['orderby'] = 'name'; $query['order'] = 'ASC'; return $query; }
Hope you can help
Regards Pete,March 28, 2015 at 11:49 am #419826hey,
Have you found a solution?
Regards PeteMarch 30, 2015 at 5:54 am #420196Hi!
This should work to filter the same category:
/*filter projets - only show same category */ add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; }
This one will work for the Portfolio Grid element. It will not work for masonry or blog posts elements:
/*filter portfolio sorting */ add_filter('avia_post_grid_query', 'avf_custom_post_grid_query'); function avf_custom_post_grid_query ( $query ) { $query['orderby'] = 'name'; $query['order'] = 'ASC'; return $query; }
Please give us a link to the page with the portfolio grid element.
Regards,
IsmaelMarch 30, 2015 at 12:09 pm #420350This reply has been marked as private.April 2, 2015 at 6:56 pm #422715This seems to be the same Problem. Since Update on 3.1.3 by using “Portfolio Raster” and sorting by Date in descending order. The Portfolio Elements will shown correct, but the Page Navigation is now working in ascending order…
- This reply was modified 9 years, 7 months ago by wellenwerk.
April 2, 2015 at 6:57 pm #422716This reply has been marked as private.April 4, 2015 at 4:48 am #423343Hey!
@funky: The filter is working. I set the order parameter to descending and it works as expected: http://e308031c72c2a40f7804cdf17e3238990a7c8a05.web19.temporaryurl.org/test-portfolio-sorting/
@wellenwerk: Add this to the functions.php file to reverse the avia post nav:add_filter( 'avia_post_nav_entries', 'enfold_customization_reverse_post_nav', 10, 1 ); function enfold_customization_reverse_post_nav( $entries ) { $prev = $entries['prev']; $next = $entries['next']; $entries['prev'] = $next; $entries['next'] = $prev; return $entries; }
Regards,
IsmaelApril 4, 2015 at 6:53 pm #423488Hey Ismael,
The change of ‘DESC’ from ‘ASC has done, that they are not sorted alphabetically.
They should be sorted:
aage ABE Bent NIELS
+ next / prev does not appear correctly.
When I click ‘Aage’ …. ‘Niels’ is shown to the left and ‘Bent’ on the right side
(There should be nothing appearing on the left side, and ‘ABE’ comes before ‘Bent’)I just want it to work as it did before.
Alphabetical sorting – both the list and when you click.Hope you can help
Regards Pete,
April 7, 2015 at 4:01 am #424395Hi!
They are sorted that way if you set the order parameter to ASC. Please check it carefully, remove browser cache before loading the page: http://e308031c72c2a40f7804cdf17e3238990a7c8a05.web19.temporaryurl.org/test-portfolio-sorting/
When set to DESC, they are sorted as: NIELS Bent ABE aage
Regarding the post nav, it can only filter by date, not alphabetically. You can manually change the date of the portfolio items if you want to display them alphabetically, latest post will always display first.
Regards,
IsmaelApril 7, 2015 at 9:50 am #424533Hi! Ismael,
Regarding to post nav, sorting has worked before is it due new update, it does not work anymore?
I do not think it makes any sense, they will not be sorted in the same way as they appear.Is there another solution?
Regards Pete
April 7, 2015 at 11:09 am #424569Tanks a lot – this is working for me… ;)
define sortorder of the portfolio page navi:
add_filter( ‘avia_post_nav_entries’, ‘enfold_customization_reverse_post_nav’, 10, 1 );
function enfold_customization_reverse_post_nav( $entries ) {
$prev = $entries[‘prev’];
$next = $entries[‘next’];
$entries[‘prev’] = $next;
$entries[‘next’] = $prev;
return $entries;
}April 7, 2015 at 1:23 pm #424634April 7, 2015 at 2:28 pm #424697Hey Yigit,
I can not get it to work, can you see if you can.
Regards Pete,
April 8, 2015 at 2:41 am #425026Hi!
It is the default behaviour of the post navigation right from the start. I’m not sure how you managed to filter them alphabetically. Please change the post date manually.
Best regards,
IsmaelApril 8, 2015 at 9:53 am #425156Hey Ismael,
thanks for your effort, hope in finding a solution in the future.Regards Pete
-
AuthorPosts
- The topic ‘item portfolio navigation buttons’ is closed to new replies.