Displaying Rotational Images in a Wordpress Theme Displaying Rotational Images in a Wordpress Theme
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Displaying Rotational Images in a Wordpress Theme

Started by nowordneeded, October 21, 2011, 04:00:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nowordneeded

My gallery is located @ http://mitchpileggi.org/gallery and I'm running the latest stable version of 1.5.16. I want to include a rotating image in the sidebar of my wordpress themed site. I'd like to know if there is a plugin that allows for this? What I mean is, I don't want the last images uploaded as I have in my theme currently, I want to have a new image display as a sort of 'Photo of the Moment' kind of thing, but I want it from the gallery or a certain album. Is there a plugin that does this?

Thanks in advance.

NWN
Sometimes my musings are too confusing for someone not inside my head.

Αndré


nowordneeded

Andre:

I already have Cpmfetch for 2.0 running on the site with my Latest Images displayed. Is there anything else I can use or can I use two copies of the PHP coding, one for the latest images and one for the image of the moment? My main site is http://mitchpileggi.org and you'll see I already have the latest images running.

Thanks.

NWN
Sometimes my musings are too confusing for someone not inside my head.

Αndré

Quote from: nowordneeded on October 21, 2011, 04:23:31 PM
can I use two copies of the PHP coding, one for the latest images and one for the image of the moment?
I don't know, but I think so. Please also have a look at the CPMFetch docs:
Quotecpm_viewRandomMedia ( $rows,  $columns, [array $options = ""])
cpm_viewRandomMediaFromAlbum ( $rows,  $columns,  $albumid, [array $options = ""])
cpm_viewRandomMediaFromCategory ( $rows,  $columns,  $catid, [array $options = ""])
cpm_viewRandomMediaFrom ( $rows,  $columns,  $source, [array $options = ""])

nowordneeded

Andre:

So if it will work, I just use the coding from one of the lines you supplied?

Thanks.

NWN
Sometimes my musings are too confusing for someone not inside my head.

Αndré

I never used that plugin, so I cannot give further support. But if you're already using CPMFetch you should know how it works. Just use the correct function for the random images. The rest should stay the same, just give it a try.

nowordneeded

Sometimes my musings are too confusing for someone not inside my head.