Tagged: link color, portfolio grid
Hi gurus
I have 2 issues on my site:
1. I have a portfolio grid on the page below, with side navigation. I changed the direction with some code in the function.php, which worked fine. Now I am seeing that if I click through the nav arrows, I see portfolios that are not shown in the grid. I haven’t seen this happen before. Can you see what the problem is?
2. My links are supposed to be red, but on some pages are displaying black. see the pages in private content. I’ve looked at the text code and it’s the same. Can you see why this is happening?
thanks
Nancy
Hey Munford,
Thank you for the inquiry.
Are you trying to adjust the order of the items in the post navigation to be the same as in the grid? Please note that the posts or items in the navigation are sorted by published date regardless of their categories. It is using the get_adjacent_post function by default.
// https://developer.wordpress.org/reference/functions/get_adjacent_post/
We can use the get_{$adjacent}_post_sort filter to adjust the query if necessary.
Best regards,
Ismael
no I am sorting them with a plugin but I figured out what the problem was (private posts)
you can close this thread, thanks.