Support » Plugin: Flickr - Pick a Picture » [Plugin: Flickr – Pick a Picture] Search Results are a bit off

  • Hi,

    This plugin is great. Much better than Photodropper (pretty, but not working) and Foter (nice, but limited options).

    My one complaint would be that search results are a bit odd. I’m not sure what parameter you use to sort them, but they are not really close to displaying the most relevants results first. Still, I don’t mind browsing a bit more if it means having a clean code like the one you have.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author pekastel


    Hi tzzel,

    I’ve released a new version of the plugin that supports ordering the search results by all the available options on flickr, and defaults the search order to “Relevance”.

    Try it and please let me know what you think.

    Thanks for commenting.


    I just tried the update now. I’m getting a PHP error on curl_init(). Not sure what’s happening.

    Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\wordpress\wp-content\plugins\flickr-pick-a-picture\pick-a-pic.php on line 225

    Also, off-topic, but one thing I did add to your code was another CSS class around the “Photo by ______” in the $caption variable. It’s a very useful change that allows users to differentiate the credit from a caption via CSS. I personally made the credit white text on black with smaller font size, and positioned it to be in the corner of the photo, rather than along with the caption.


    Plugin Author pekastel


    It looks like you don’t have the curl module activated on your installation. I have added a fix that uses file_get_contents method (assuming that you have ‘allow_url_fopen’ enabled) if curl is not available..

    If you want send me a pull request on github with the change that you have made to the caption, so I can merge it.


    Thanks for that fix! The results look great now. Previously, I felt the back of the search results netted the most relevant results.

    Also, I know of Github, but I really don’t know how to use it. The modification I did was really simple:


    $excerpt = __(‘<span class=”wp-caption-author”>Photo by ‘, ‘pickapic’).’‘.$flickr_info[‘owner’].’</span>‘;

    Adding this class will do a lot. Because .wp-caption-author is nested in both .wp-caption-text and .wp-caption, people can easily position it using a position:relative parent and setting the class to position: absolute in their theme stylesheet.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Flickr – Pick a Picture] Search Results are a bit off’ is closed to new replies.