Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Need gallery widget to show images on a schedule, with links


  #1  
Old Jun 11, 2009, 07:46 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
This is hard to explain.

I need to be able to show an image in a sidebar, which links to an outside site when clicked. I need to show a different image each day of the month, linking to a different site for each image.

At the moment, I'm using an iframe which shows a particular date of the calendar, and in that calendar are 30 or 31 different images as the data for each date. It's a cumbersome solution, and I'd rather use a Wordpress method instead.
  #2  
Old Jun 18, 2009, 04:16 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You could use a PHP widget
PHP Code:
<?php
$current_month 
date('n');
switch (
$current_month) {
   case 
1: echo '<a href="link1"><img src="/path/to/image1.jpg" /></a>'; break;
   case 
2: echo '<a href="link2"><img src="/path/to/image2.jpg" /></a>'; break;
   case 
3: echo '<a href="link3"><img src="/path/to/image3.jpg" /></a>'; break;
   case 
4: echo '<a href="link4"><img src="/path/to/image4.jpg" /></a>'; break;
   case 
5: echo '<a href="link5"><img src="/path/to/image5.jpg" /></a>'; break;
   case 
6: echo '<a href="link6"><img src="/path/to/image6.jpg" /></a>'; break;
   case 
7: echo '<a href="link7"><img src="/path/to/image7.jpg" /></a>'; break;
   case 
8: echo '<a href="link8"><img src="/path/to/image8.jpg" /></a>'; break;
   case 
9: echo '<a href="link9"><img src="/path/to/image9.jpg" /></a>'; break;
   case 
10: echo '<a href="link10"><img src="/path/to/image10.jpg" /></a>'; break;
   case 
11: echo '<a href="link11"><img src="/path/to/image11.jpg" /></a>'; break;
   case 
12: echo '<a href="link12"><img src="/path/to/image12.jpg" /></a>'
}
?>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header images don't show? Read this ... Flynn Header 88 Dec 28, 2010 12:54 AM
[SOLVED] Rotating images in header using NextGen gallery juggledad Header configuration & styling 7 May 20, 2009 05:33 AM
Trying to get Images to show in feed Prior Image RSS, Feeds & Subscribing 0 May 18, 2009 01:17 PM
How to edit links widget or how to have links in sidebar of page? Joelb53 Sidebars & Widgets 1 May 6, 2009 03:52 AM
IE6 doesn't show my 4 column image gallery right yumiko7 New Versions, & Updating 8 May 5, 2009 08:36 PM


All times are GMT -6. The time now is 12:01 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.