• Resolved karlotta

    (@karlotta)


    Hello!

    My index page’s background image is defined by the latest post’s content (which is a naked link to an uploaded image, nothing else). This is how I call it :

    <div id="content" style="background-image:url(<?php echo get_the_content(); ?>)">

    I’d love to be able to have different images load randomly, so that upon each visit, my visitors would get a chance to see a different picture. I haven’t been able to find a plug-in that would do that.

    Plug-ins for random posts add all kinds of info (like the title… etc) and plug-ins for random images add the <img> tag. I tried Random File, but it didn’t work.

    Anybody has a suggestion?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter karlotta

    (@karlotta)

    I actually figured out by editing the Single Random Post With Text plugin with the help of its creator. A big thank you to Cristescu Bogdan!

Viewing 1 replies (of 1 total)
  • The topic ‘calling a random image, without img tag?’ is closed to new replies.