What theme are you using? If it is a custom theme we are happy to help here. However, if it is a third-party theme you will need to contact your theme developers.
Just change the false in get_adjacent_post() to true.
I did that and it breaks the theme.
Have you tried this:
$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post_link( true, '', true );
$next = get_adjacent_post( false, '', false );
Also, if you are not using a custom theme make sure you are making changes like this in a child theme https://developer.wordpress.org/themes/advanced-topics/child-themes/
Hope this helps. Once you find a solution please tag the thread as resolved.
Hey guys, thanks for the help!
I figured it out. The theme function above is only being used for the image background of the previous/next nav. I changed the values to “true” there, which pulled the images from the previous/next posts in the category like I wanted.
Then I had to make a change on the single.php page, which was using get_the_post_navigation. I just had to add the proper $args there and it’s fine.
And yep, modifying a child theme.