Tagged: breadcrumb, grid, missing, navigation, Portfolio
-
AuthorPosts
-
March 13, 2018 at 5:44 am #925872
hi there,
i have 2 galleries (or portfolio grids) on one page, both are supposed to be displaying portfolio items from different categories, however despite there being items assigned to all categories, & specific categories being selected to be displayed in a grid (or gallery), they are missing from its breadcrumb trail or navigation.
How to I sort this out? There’s nothing obvious missing in terms of setup.
Theme & WP is up to date, I’m using your child theme.
Thanks,
JasonMarch 14, 2018 at 9:47 pm #926861I should add hosting is with SiteGround – but I don’t currently have their caching plugin enabled.
DNS is with CloudFlare, maybe this is causing an issue with the JS on this page?March 15, 2018 at 6:02 am #927054Hi,
Thank you for using Enfold.
That is the default portfolio breadcrumb. If you want to display the categories instead of the “portfolio page”. Add this filter in the functions.php file.
add_action('after_setup_theme','avia_remove_blog_breadcrumb', 90); function avia_remove_blog_breadcrumb(){ remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb'); }
Best regards,
IsmaelMarch 15, 2018 at 6:23 am #927062Hi Ismael,
Sorry – I don’t understand, its whatever this functionality provides (see attached) – that breadcrumb navigation is not showing all categories from the first portfolio grid, & none whatsoever from the second – despite there being items in those categories, & sort-able being set to yes (see attached).
That bit of code did nothing I’m afraid.
March 15, 2018 at 6:41 am #927073Hi,
I’m sorry but a bit confuse here. The sort button has nothing to do with the breadcrumb. How do you expect the breadcrumb to look like? The sort button is not displaying in the second portfolio grid because the items in the first page belong to a single category called “West Coast”. If you go to the second page, the sort button will display because items from another category or taxonomy are present.
Best regards,
IsmaelMarch 15, 2018 at 6:55 am #927083Hi Ismael,
Ok, I am confused – but I think I’m getting there.
So, essentially I really can’t have two separate portfolio grids on one page then?I understand what you are saying re the West Coast – that makes sense.
So I see by playing with the pagination that if I click on page 2 of the bottom grid, that also displays page 2 of the top grid, so having 2 grids on one page doesn’t really work.So there’s no way to display all of the categories on page 1?
It only displays categories of the photo’s present on page 1?
Does that sound correct?Is there any way to retain the sort functionality of a grid, & display all categories on each page of the grid?
I will put the grids on separate pages.Perhaps I would be better off using another element to display these photo’s?
What I want to do is give visitors an image grid (say 3 rows of 4 columns) with pagination, with a way to display images only from a given category if they so desire.March 15, 2018 at 1:58 pm #927323Hi,
So there’s no way to display all of the categories on page 1?
It only displays categories of the photo’s present on page 1?This is possible but you have to set the “Order by” settings to “Random”. This will query the portfolio items randomly so there’s a great chance that a mix of items from different taxonomies or categories will be present on page 1.
So I see by playing with the pagination that if I click on page 2 of the bottom grid, that also displays page 2 of the top grid, so having 2 grids on one page doesn’t really work.
Yes, that’s correct. Unfortunately, this is how the WP pagination works. You can get around this limitation but you have to implement ajax.
// https://wordpress.org/plugins/malinky-ajax-pagination/
Best regards,
IsmaelMarch 18, 2018 at 9:55 pm #928790Thank you Ismael :)
March 19, 2018 at 5:21 am #928864 -
AuthorPosts
- The topic ‘Portfolio grid categories missing despite items being assigned’ is closed to new replies.