1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress plugin for Random Posts Thumbnail Gallery

Discussion in 'WordPress' started by jon0704, Jul 11, 2008.

  1. #1
    Hi fellow DPer's

    I have made a simple plugin to display a table of random article thumbs.

    Sample :
    www.geekiegadgets.com : left column & @ archive pages bottom


    Installation
    SEMrush
    Upload the “wp-random-thumbs” folder to the wordpress “plugins” folder
    activate the plugin in your admin panel
    insert this code in you theme where you want the thumbnails to appear
    <?php if(function_exists(”random_thumbs_table”)) { random_thumbs_table($rows,$cols); } ?>
    Code (markup):
    NOTE : do not forget to replace the $rows and $cols arguments with actual numbers


    Plugin Link : Wordpress Random Thumbnails

    if you have downloaded and used the plugin we could use this thread to discuss bugs or suggestions

    hope you guys will like it
     
    jon0704, Jul 11, 2008 IP
    SEMrush
  2. lachrymologist

    lachrymologist Active Member

    Messages:
    456
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    70
    #2
    lemme be the first here to thank you for this plugin :)
    anyways, i have trouble to implement it to my future wp blog (not yet uploaded),
    it uses the same template as this: http://www.bestcssgallery.com
    now i want to know how can i randomize the posts on the homepage of the blog without messing the theme functions...

    thanks in advance for any replies :)
     
    lachrymologist, Jul 12, 2008 IP
  3. websurfpro

    websurfpro Active Member

    Messages:
    250
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #3
    Great plug-in I can use this for one of my tech blogs. I am actually interested in a simple plug-in that will display at the bottom of the post a link to a random post . Any ideeas ?

    Thanks
     
    websurfpro, Jul 12, 2008 IP
  4. jon0704

    jon0704 Peon

    Messages:
    606
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    lachrymologist : try this... this is a simple solution.
    upload and activate the plugin
    on the index.php of your theme
    locate : <?php get_header(); ?>
    replace with : <?php get_header(); ?> <?php lazyjon_random_posts(); ?>

    this will replace the default posts query with a random post query

    I am a bit new at wordpress, thats the best solution i can think of now

    hope it helps... please update us... if it works



    websurfpro : do you want just random posts link to be : text links or thumbnails ?
     
    jon0704, Jul 12, 2008 IP
  5. Jackie_W

    Jackie_W Well-Known Member

    Messages:
    1,964
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    115
    #5
    great plugin - worked first time
     
    Jackie_W, Mar 28, 2009 IP
  6. ravi2288

    ravi2288 Active Member

    Messages:
    165
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    its not working on my blog
     
    ravi2288, Mar 28, 2009 IP
  7. jon0704

    jon0704 Peon

    Messages:
    606
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    jon0704, Mar 30, 2009 IP