Subscibe our Newsletter for FREE and stay up to date with our daily lesson*

AJAX Random Post

Giving animated storyline on your blog is a good idea to attract your visitor and show them the summary of your contents. As we know, there are some random post plugin on WordPress Plugin Directory to show randomed post on your widget. However, some visitor will get more attention on something animated like GIF animation or AJAX effect.

AJAX Random Post is the best idea to solve this opportunity. You can download it in WordPress Plugin Directory. It will add sidebar widgets containing your randomed post. What is the benefit of it? Like I said before, it will show the summary of your post put by random. The main purpose is to give your visitor demonstration about what kind of post do you have and hold them from closing the tab if they have completely read the current article.

Beside displaying Random Post, AJAX Random Post will periodically cycle the post summary with AJAX JQuery animation, you can determine the time of each transition. So the showed post summary is only one but it will periodically cycling with JavaScript and JQuery animation.

So what are you waiting for? Just download it free called AJAX Random Post. Once activated, go to your widget settings, you will see new widget called AJAX Random Post. Add it to your sidebar. You will have some options to determine how many randomized posts should load and about the transition time between each summary to animate.

You can implement this widget on your sidebar and start attracting more visitor and make your visitor spend more time to read your blog around. If you have any problem with the plugin, i am here to help you… :-)

Let's talk it out!

27 Responses to “AJAX Random Post”

  • Dave

    Hey there,

    I’ve just downloaded your plugin, but I don’t use widgetized sidebar. I’d like to have this on a part on my frontpage, is there any way I can do this?

    Thanks!

    Dave


  • Heiko

    Hello

    What a cool plugin!

    I wounder whether it might be possible to show all posts of a particular category instead of all posts. That would be an interesting feather specifically when working with pages.

    Another question is if it might be possible to call the funnctions of the widget directly from a post or page for example via a php command (with the help of ExecPHP)?.

    Kind regards,
    Heiko


    • Prad

      Hi Heiko,

      Did you figure out how to show posts from a particular category. It would be real helpful if you could share this with us. Thanks


  • julian

    oke bro

    just put the PHP code via your theme-editor

    < ?php arp_widget();?>


  • Dimitar Chakarov

    Hi there,
    Your plugin is very good, I put it on my site and it looks great!

    Most of my posts are in Bulgarian, so I took the liberty to change this line
    $excerpt = substr(strip_tags($post->post_content),0,300);
    to
    $excerpt = mb_substr(strip_tags($post->post_content),0,300);
    because every once in a while substr cuts the 2-byte character in half and it prints a question mark. I hope you don’t mind.

    Have a nice day!


  • julian

    @Dimitar Chakarov : you are free to edit the files :-)
    thanks for letting me know


  • Ed Coyne

    What Heiko said. Either by category or exclusively posts and not pages.


  • Bibiana

    Hi, I would like to know if I can post an attachment specific image with code.

    I’ve tried this, but have no sucess:
    $image = wp_get_attachment_image_src( ‘fieldname’ );
    echo “$title$excerpt”;

    Thanks for any help


  • Nu Desler

    Simply want to say your article is impressive. The clarity in your post is simply striking and i can take for granted you are an expert on this subject. Well with your permission allow me to grab your rss feed to keep up to date with succeeding post. Thanks a million and please keep up the admirable work


  • blacky

    I like it i like the slider


  • Tecrux

    Absolutely great widget.Julian how can i change the font of the excerpt below the title.I tried to change it to “Calibri, Arial, Helvetica” but error was generated.How i can do it in your code.Kindly tell me soon i will be grateful.


    • julian

      you can override the property using CSS

      #ajax-random-post {color:#FFF; font-family:Calibri, Arial, Helvetica}


  • satrya

    Halo bro, salam kenal..
    Sebelumnya sori koment pkai bhasa indo, ada bug sedikit pada plugin ini.Ternyata yang muncul itu bukan hanya post tapi page juga ikut terbawa.
    Tapi aku perhatikan random post yang ada di footer ini koq gak ada page yang terbawa y? sedangkan aku test di blog ku ada page yang ikut terbawa.
    mohon pencerahannya.


    • julian

      yg versi baru udah ane benerin gan :-)

      the newest version is free from the unwanted “page” post


  • digital

    thanks for sharing post


  • linuxer

    but, is ajax post can give us problem in SEO?


  • LatinUnit

    Hey how can i add the post thumbnail to the widget


  • julian

    hello everyone

    if you are experiencing message

    “You do not have sufficient permissions to access this page”

    then you should deactivate and delete the old version of this AJAX Random Post

    after that you can install it directly from Plugins > Install and run the plugin normally


  • LatinUnit

    I want to add Thumbnails to the widgettttttttttttttttttttttttttt


  • augustin

    Hi and thanx!
    I love WP and have learned a lot of coding with it. I’m no pro and with a recently diagnosed adhd, I’m just restarting studies by reading blogs like yours (I’ve had the newsletter for months). With my new medicine, I can focus and take time to read articles and post without stress like before when I just surfed thousands of pages without stopping and reading- my RIL-plugin was really huge;-) Thank you again and have a nice life!


  • Madhawa habarakada

    A great plug-in. Thanks.


  • TheShadow

    Nice plugin but is there any way to make a random post with thubnail and ajax refresh without plugin


    • Julian

      of course there’s a way

      you can use WP PHP Function, at least

      $wpdb->query();

      and

      $wpdb->get_results();

      if you want simpler way, you can edit the plugin.php of this plugin and add additional PHP for inserting the thumbnail…


      • TheShadow

        Hi,Thanks for the reply.But can you please describe it.I am not familiar with coding.if possible can you please add a post regarding How to add random post with thumbnail to wordpress.

        i mean exact location of placing those codes css and html

        i have seen radom post used in one of the wordpress theme arthemia premium


        • Julian

          hi there…

          the function should be placed in .php files only
          in arthemia premium you may be got it because it is already bundled with the theme itself…


          • TheShadow

            Hello,Thanks for the info and help.i will try it


What is in your mind ?

Subscribe Me

Learn more the basic tips about WordPress and PHP coding. You can subscribe to our Newsletter to stay in touch with every new stories FREE

Sponsors

WooThemes - Where there's a Woo, there's a way!

Our FaceBook (new)


Discussion Topics

Who am I ?

My name is Julian Widya Perdana. I study at University of Gadjah Mada, Yogyakarta. I am a young developer addicted in JavaScript, Plugins, Themes, AJAX, and PHP developement. If you need anything, then submit it on Contact Us. If you feel satisfy with my work, please support me to keep it developed

Our Community

Discussion

scmal

Is good, thank

EstelleRoach19

well, simple CSS problem, isn't it?

Gene Cardenas

funny picture you got :-)
Close