Had a bit of time on my hands this morning, spent it on tinkering with code. I do love to tinker with code! My ‘random’ page – the one I use to browse my memory at random – wasn’t all that goodlooking. I programmed it myself, and at first I was happy that it worked at all. Today I became a bit ambitious about the layout, and voila! Pics are of ‘after’ and ‘before’ – obviously, I like ‘after’ better :)

I used a built-in WordPress function for getting random pages, that is to say: $posts = get_posts(‘orderby=rand&numberposts=4’);  –  it would be interesting to know what algorithm is behind the function. Wonder if I can find out?


« <-- previous post next post --> »