Hi, please see my previous thread on displaying categories for portfolio posts. You asked me to add you as an admin but there was some problem with access to the server. I have set up a temporary page on a different server to see if you can now access as an admin. I’ve included login details below.
I would like the categories to display below the preview image, above the post’s title in the portfolio grid.
Also, where there is more than one category to display, at the moment the categories are all joined together, with commas bunched together on the right side of each post in the grid. It would be good if the multiple categories could be displayed with commas between.
Thanks, Richard
Hey Richard!
Thank you for the update.
Please replace the code on functions.php with this:
function add_stuff_to_portfolio_grid($output, $entry) {
$term_list = get_the_term_list( $entry->ID, 'portfolio_entries', '<div class="portfolio-term">', ', ', '</div>');
return $term_list;
}
add_filter('avf_portfolio_extra', 'add_stuff_to_portfolio_grid', 10, 2);
Add this on Quick CSS or custom.css:
.portfolio-term {
text-align: left;
}
.grid-entry a[rel='tag'] {
float: none !important;
}
Regards,
Ismael
Thanks Ismael,
I’ve made those changes, but it still displays the category tags joined together, with the commas after. And they are still displaying above the featured image.
Best w, Richard
Hey!
You can use:
.grid-entry a[rel='tag']:after {
content: ' , ';
}
Without any other function. For this kind of customization however you will need to look into a freelance developer from somewhere like Envato Studio or Codeable. We’ll often provide snippets here and there but its beyond the scope of what support covers and shouldn’t be relied upon as a consistent source for theme customization.
Cheers!
Devin