• Resolved jcyyap

    (@jcyyap)


    Hello friends,

    Was wondering if you guys have a solution to my problem,

    I have a related posts (based on categories) set up on each post and but when i create a new category, it messes up the related posts because there’s nothing related, it displays a blank column. i knew this would happen but whats the code to display, say a random post or even text saying ‘no related posts’?

    Hope i’m clear about what i said.
    i guess its something to do with <?php else : ?> , <?php if : ?> or something like that but i don’t know!

    Please help wonderful people =)

    the full code is on pastebin:

    https://pastebin.com/H1JNEYj5

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘if no related posts’ is closed to new replies.