WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Post Thumb Revisited] "category=" option not working... any ideas? (7 posts)

  1. Rodeo Imagination
    Member
    Posted 5 years ago #

    Hello everyone, I've just starting using this great plugin, but I've come across a problem setting up the category option...

    This is the code I'm trying to get working in my sidebar

    <?php the_random_thumb('link=p&WIDTH=91&HEIGHT=123&showtitle=T&category=11'); ?>

    and this is the result in my page

    Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in /home/chiloeno/public_html/santiago/wp-content/plugins/post-thumb/post-thumb.php on line 451
    
    Warning: Invalid argument supplied for foreach() in /home/chiloeno/public_html/santiago/wp-content/plugins/post-thumb/post-thumb.php on line 414

    when I take out the "category=11" it does work, but in the available parameters it's a valid one, so I guess there might be some problem with the file...

    Here're the source code to the plugin: http://post-thumb-revisited.googlecode.com/svn/trunk/

    And here're the available parameters: http://code.google.com/p/post-thumb-revisited/wiki/Parameters

    hope anyone can give me a light on this... thanks guys :(

    http://wordpress.org/extend/plugins/alakhnors-post-thumb/

  2. Rodeo Imagination
    Member
    Posted 5 years ago #

    *bump* >_<

  3. flick
    Member
    Posted 5 years ago #

    As you know, I am no coder, but I do wonder if it might be an idea to add the &limit=1 parameter (or any other number) after the category one just to see if it might work. Not sure if the category and limit are dependent on each other at all, but since it's complaining about limits needing to be between 1 and the total number... sorry if it doesn't work out. I'll test the plugin if it doesn't (it's 4am here! ;D)

    Looks like a really nifty plugin, and I'm really impressed by the documentation! :)

    p/s: The plugin also seems to have widget functionality (including 'get random') so might be an idea to see how that is structured if it's not a good replacement.

  4. Rodeo Imagination
    Member
    Posted 5 years ago #

    Thanks a lot mosey, yes I actually tested adding the &limit=1, but it didn't worked adding it or setting the limit to 2 or more... So I guess the problem isn't on the dependance... hope you can test it and give it a look...

    Yep, it's actually one of the best plugins out there, at least to build a CMS, I was impressed for the capabilities.

    Oh! widget... to be honest I didn't try it, I like plugins the more for the customization... but if nothing works I'll try to go for it... I just hope it can get with all the options the plugin has :o

  5. flick
    Member
    Posted 5 years ago #

    @ShirouJune: I'm afraid I'm going abroad tomorrow so it might be a week or so before I get back to you on this. Hope this is ok? I'm getting dazzled by the array of options at the mometn ;)

  6. Rodeo Imagination
    Member
    Posted 5 years ago #

    Yep, it's ok Mosey, I am still messing this around, and sorry for the inconveniences. I do aprecciate the help.

  7. adanahmad
    Member
    Posted 5 years ago #

    there is no thumb images created (post don't have image) in category 11.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.