WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. nickpalm
    Member
    Posted 11 months 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.

    Thanks!

  2. bcworkz
    Member
    Posted 11 months 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/ .

Reply

You must log in to post.

About this Topic