Site logo

Archived topic

Make dynamic images of next/previous posts only display posts in same category

16 replies · Started by Avi on June 2, 2021

Viewing posts 1–15 of 17

Hey, on your video here https://www.youtube.com/watch?v=J-VIWJiJBDQ&t=8s
One of the commentators has left a question that is very interesting to me as I struggle with the same problem:

The dynamic toggle chooses the correct headline (limited to category), but the image and link go to the previous/next post in the entire post list, not the previous/next one in the category. I'm just wondering if maybe the pro version of the blocks plugin needs a toggle for the background image/clickable link so it pulls from the same category as the headline.

Is there a solution for this?
Thanks in advance!

If you go here https://artisticadvice.com/airbrush-test-3/ and click on previous post, instead of taking you to "airbrush test 2" (like it says at the dynamic headline) it will take you to page "acrylic test 3" which is a different category. I want the previous/next post dynamic blocks to only take you to posts in the same category

Could this be because you are using the dynamic headline as the button and I am using generateblocks pro so I am using the entire block as the button

Hi there,

That all looks good to me. Just to confirm, is this only happening with the Container link? Does it work ok if you use a Headline or Button link?

I'll take a look :)

Thanks!

Hey Tom, after I have removed the container dynamic link and only the headline link has remained, it does seem to work :)
I will keep it without the container link for now, please keep me updated if there is a solution or if there was any other issue that has caused it.

Thanks in advance, Avi :)

Hey, any updates?

Hi there,

I've tried to reproduce this, and I've looked through the code to see if there are any errors, but I haven't been able to get it to happen.

Any chance you can link me to an example so I can inspect the HTML? That may help me reproduce it on my end so I can debug it deeper.

Hey, sorry for the delay.
As you can see here the dynamic options for the container previous post link/headline previous post link are not similar, that might explain the problem.
Headline dynamic options (in same term toggle is available) - https://ibb.co/bLCRxw1
Container dynamic options (in same term toggle is not available) - https://ibb.co/4tNV2W7

On this page you can examine the HTML -
https://artisticadvice.com/acrylic-test-4/

You can see the previous post headline is set to "acrylic test 3" which is correct, however once you click the container you will find yourself in "airbrush test 4" which is a different page from a different category.
Basically all I want is the container link to take the viewer to the page mentioned in the headline (Headline dynamic options and in same term toggle all work perfectly)

Hey David, Yes, I have enabled this toggle

Hi there,

Finally been able to confirm this as a bug. We'll get it fixed in GPP 2.1.0, which should be released mid-August.

Thanks for the heads up!

Thank you everyone! Happy to assist Tom and the team :)

This archived topic is closed to new replies.