WordPress related posts without a plugin

For my website I wanted to display related posts by category. For this feature I stumbled on a code snippet which worked for me. As you can see it looks for the similar category and then displays the content of the posts. All I needed to do is change the content to match the layout of my design.

Have any questions? Share this posts and tag me!

Related

Divide html list in two

For my job I needed to split a html list in two. The tricky part was that the list contained links with borders. To create a solution I used jQuery…

Read more

CSS Line Arrow

Today I wanted to change the ascii arrow for a css version. While searching the web, I stumbled upon a Codepen with something similar. I tweaked it to fit my…

Read more

Fade in element on scroll in viewport

For this effect I tried out different scripts and css files. In the end I currently use the script below and these css classes with css transitions. As you can…

Read more