WordPress.org

Support

Support » Plugins and Hacks » Hacks » Give all images in post a universal url link

Give all images in post a universal url link

  • nickpalm
    Member

    @nickpalm

    I’m making somewhat of an image roullette and am having trouble with one thing.

    I’m looking to make all images on my site automatically link to the same url (mydomain/?random). I know there is a function for this, but I can’t seem to find it.

    Thanks!

Viewing 1 replies (of 1 total)
  • bcworkz
    Participant

    @bcworkz

    I know of no such URL syntax. It is possible to construct a query that returns random images. You could make a custom page template that does this and displays the result. If that page template were used to create a (post type) page named “Random”, the URL to get a random image could then be domain.com/random/ .

Viewing 1 replies (of 1 total)
  • The topic ‘Give all images in post a universal url link’ is closed to new replies.