Lensa Theme Flickr Not Working

Hi everyone!

Several days ago, my friend Dominatrix from Ireland asked me about Lensa theme. What she asked is about the Flickr Streaming feature that available when you create a page using template gallery.

As you all know, this feature is not working since several months ago and yet no solution from ColorLabs teams about it. So, at this post i will share to you how to make a new page template that works to fetch your Flickr Images.

What i made this time is not using a caching technique, which means every time you reload your page, your browser will download the images from Flickr. Anyway, the same technique was used by ColorLabs teams previously, but in different way.

To do this modification you have to modify a file named theme-options.php and make a new file for the page template. This file will be named by template-nflickr.php (you can also use another name for this file).


At this step you have to modify a file named theme-options.php. You can find out this file via FTP at directory: wp-content > themes > lensa > includes.

What we are going to do with this file is to add a new option for your Flickr gallery. Find out this code:

//Contact Form */
$options[] = array( "name" => __("Contact Form","colabsthemes"),
					"type" => "heading",
					"icon" => "general");
$options[] = array( "name" => __("Destination Email Address","colabsthemes"),
					"desc" => __("All inquiries made by your visitors through the Contact Form page will be sent to this email address.","colabsthemes"),
					"id" => $shortname."_contactform_email",
					"std" => "",
					"type" => "text"); 

Once you find those codes, put this one after it:

//Custom Flickr*/
$options[] = array( "name" => __("Custom Flickr","colabsthemes"),
					"type" => "heading",
					"icon" => "general");
$options[] = array( "name" => __("How many photos?","colabsthemes"),
					"desc" => __("Note: more photos you set to be displayed will reduce your page loading time.","colabsthemes"),
					"id" => $shortname."_cflick_num",
					"std" => "",
					"type" => "select2",
					"options" => $other_entries );
$options[] = array( "name" => __("How to sort?","colabsthemes"),
					"desc" => __("You can displaying a random photos or displaying your latest photos","colabsthemes"),
					"id" => $shortname."_cflick_sort",
					"std" => "",
					"type" => "select2",
					"options" => array( "latest" => __( "Latest", "colabsthemes" ), "random" => __( "Random", "colabsthemes" ) ) );		
$options[] = array( "name" => __("Account type","colabsthemes"),
					"desc" => __("Who manage this account?","colabsthemes"),
					"id" => $shortname."_cflick_type",
					"std" => "",
					"type" => "select2",
					"options" => array( "user" => __( "Only you/personal account", "colabsthemes" ), "group" => __( "Me and friends/group account", "colabsthemes" ) ) );				

$options[] = array( "name" => __("Your Flickr ID","colabsthemes"),
					"desc" => __("Type your Flickr ID here. You can find it at: http://www.idgettr.com/ ","colabsthemes"),
					"id" => $shortname."_cflick_id",
					"std" => "",
					"type" => "text",
$options[] = array( "name" => __("Image size","colabsthemes"),
					"desc" => __("Set how big the image that will be displayed","colabsthemes"),
					"id" => $shortname."_cflick_size",
					"std" => "",
					"type" => "select2",
					"options" => array( "square" => __( "Square", "colabsthemes" ), "thumbnail" => __( "Thumbnail", "colabsthemes" ), "medium" => __( "Medium", "colabsthemes" ) ) );							

At the new code, i’m adding several options such as: photo counter (set how many images you want to display), sorting option, account type, Flickr ID, and image size.

Once you done with it, you can go to your Lensa theme dashboard and you will find a new option.


At this step you have to create a new file with any name you want. But, at this modification i want to create a new file named template-nflickr.php. Put this file (upload via FTP) at directory: wp-content > themes > lensa.

Since this is a new file, there is no content on it. So, put this codes inside the file:

Template Name: nFlickr

<?php get_header(); ?>
<div class="row">
    <header class="page-heading block-background block-inner">
      <h3><?php the_title(); ?></h3>
	  <div class="minimize"></div>
    </header><!-- .page-heading -->
    <div class="main-content block-background column col12">
      <div class="block-inner">
        <article class="entry-post">        
          <div class="entry-content">			
						$number = get_option('colabs_cflick_num');
						$sorting = get_option('colabs_cflick_sort');
						$type = get_option('colabs_cflick_type');
						$id = get_option('colabs_cflick_id');
						$size = get_option('colabs_cflick_size');
					<style type="text/css">
						.nflick_stream a{
							padding: 10px;

					<div class="clear"></div>
						<div class="nflick_stream">
							<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=<?php echo $number; ?>&amp;display=<?php echo $sorting; ?>&amp;&amp;layout=h&amp;source=<?php echo $type; ?>&amp;<?php echo $type; ?>=<?php echo $id; ?>&amp;size=<?php echo $size; ?>"></script>        
					<div class="clear"></div>

					</div><!-- .entry-content -->

      </div><!-- .block-inner -->
    </div><!-- .main-content -->
<?php get_footer(); ?>

And done! your Flickr streaming should working fine now

10 thoughts on “Lensa Theme Flickr Not Working

  1. hello, I’m using lensa theme but the background images are not showing up! I just installed with no errors, and I also have no plugins installed. I create a new Photograph from the dasboard menu, but no images show up, can you please help me?


    • Hi Massaki,

      Are you a Japanese? Hell yeah! A first Japanese to visit my blog 🙂

      Please check about several details:
      1. Make sure if you are not using a static page (WordPress dashboard > Settings > Reading, the option should be set to displaying your latest post)
      2. Make sure when you made a photograph post type, you are ticking an option named ‘featured’ and the image should be uploaded as a featured image
      3. Go to the theme dashboard (WordPress dashboard > lensa > dashboard) and click the ‘save changes’ button

      If you can make it sure, the slideshow should be working

    • Hi Mukesh,

      do you already create a photograph and make it featured? if you already made it correctly and the slideshow still not displayed, make sure if you are not using a static page

  2. Hi Tandamerah, I have also the problem that I cannot make the slideshow work on my homepage using the lensa theme. I have several Photograph blog posts and normal blog posts. I made a “Home” page and have the Theme Setting “Front Page displays”: You latest posts. Can you tell me (maybe) step by step how to set up the slideshow on the homepage? that would be amazing 🙂

      • Hi, thanks a million. I didn’t see this tiny little “feature” thing. I always thought you mean the “featured image” on the right hand side and not the little “feature” opt in box below the texteditor. but now it works. and again thanks very much. this is like the only site on the whole web where you can find help to the Lensa theme 🙂

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s