Give all images in post a universal url link (2 posts)

  1. nickpalm
    Posted 3 years ago #

    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.


  2. bcworkz
    Posted 3 years ago #

    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/ .

Topic Closed

This topic has been closed to new replies.

About this Topic