Display a dedicated content when there is no next post

Hi!
Thanks @Araminta for the video about Previous/Next Post.

Now, I want to do something like this. I have a CTA block, I want to display this block only when the current post is the newest (no next post) and hide it if the current page is neither the newest nor the oldest.

Here is the screenshot.


The block “No Next Post Yet, Let Me Make Yours Next”.

The Previous Post is so lonely there on the front end. So, I want to add a conditioned block when there is no next post.

How can I set the condition?
Thank you!

I already have the solution.

I use this Function Return

image

Hi @jornes,

There is also another solution to this using Cwicly contexts:

You may also find this interesting:

Hi @StrangeTech

Thank you for sharing this! I will check it out to find out.