DISQUS

Phoenixheart - web blog: AJAX Random Posts - a new WP plugin (of mine)

  • Lazy · 1 year ago
    Hi,

    nice plugin, thank you very much.

    Only one thing, please change get_settings to get_option :)

    have a nice day

    Chris
  • Lazy · 1 year ago
    thank you very much for the update fix in 0.3 :)
    there is still one get_settings function in it ;)
    have a really good day
    Chris
  • phoenix.heart · 1 year ago
    Hi Chris, I will make it pure next version then ;)
  • Stewart · 1 year ago
    Hi,
    I'm looking for a way to display recent posts of a particular category on a page, and I'm wondering if your plugin might be one way to do that. What I'm wanting to do is have a page on our church website called "Film and Faith", which describes what that particular ministry is, and then at the bottom of the page, have a box with the most recent posts of movies we've watched and discussed. Maybe there is a simple way to do this without a plugin, I don't know.
    If you could help, I'd be much obliged!

    Thanks,
    Stewart
  • phoenix.heart · 1 year ago
    Steward, this is outside of my plugin's scope. If you know about coding, you may take a look at the function get_posts (notice the arguments $numberposts, $category/$category_name, and $orderby). Or you may want to check Recent Posts plugin for a much easier way.
  • Chris Kobar · 11 months ago
    I've setup your plugin but am having a problem. I have an area in my sidebar (which appears on every page) where I want to manually display one excerpt, but nothing appears there at all. Everything seems configured properly and I have included your above manual code -- -- and yet nothing renders between my outer divs. I've also changed the get_settings in your code to get_option to see if that makes a difference, but nothing. Any help?
  • phoenix.heart · 11 months ago
    Hi Chris,
    Are you placing the code <?php if (function_exists('ajaxrp')) ajaxrp(); ?> or <!--ajaxrp--> ?
  • Dave · 11 months ago
    Is there a way to display a horizontal list of 1-5 random posts on my non-Wordpress home page?


    Thank you!
  • phoenix.heart · 11 months ago
    Hi Dave, I'm pretty sure there's a way, but since this plugin is for WordPress only, that feature would be out of its scope...
  • Dave · 11 months ago
    No, my blog is Wordpress-based, but my blog is in a subdirectory.  I want to display the random posts on my home page, which is not part of my blog.  Is there a way for me to do a call like {?phpinclude("http://www.domain.tld/blog/random_posts.php");?} ?


    Thanks for the fast response!
  • phoenix.heart · 11 months ago
    Hi Dave,
    Just like almost all other WordPress plugins, mine relies on the WP functions and hooks to work. As your homepage is irrelevant to the WP core behind, I'm afraid my plugin won't work in this case.
    However, I believe you can write some php code in the homepage and manually retrieve the random posts instead of using the prebuilt WP functions.
  • Jim · 11 months ago
    Hi,
    I'm interested in creating a message board that uses WordPress.
    Does your plugin display a post, then after a period time display another post for n number of posts?
  • baron · 10 months ago
    hi. Thanks for plugin

    perfect.

    Regards
  • Lily · 10 months ago
    Hi,
    We're trying to place the random posts in our sidebar and are having the same problem that Chris had.  We tried both pieces of code and have only ended up with this:

    "Random Posts
    <!--ajaxrp-->
    Loading...
    {post}"

    I'm pretty new at all this stuff, maybe there is a quick easy fix.  Any suggestions?  Thanks.
  • phoenix.heart · 10 months ago
    Hi Lily, please note that the script should be put inside The Loop.
  • Lily · 10 months ago
    amazing -it works!   Thanks  for your quick help.
    Is there an easy way to stop it from taking images from the posts so that it only shows linked titles?
  • phoenix.heart · 10 months ago
    Great it works for you Lily. But I'm not sure why it's taking images from your posts. What is the link to your site?
  • Lily · 10 months ago
    Figured it out.  We were using the Thumbnails for Excerpts plugin, which automatically displays a thumbnail, apparently indiscriminately.

    Thanks for your help.
  • Omelyn · 10 months ago
    Very nice plugin.
  • boban piskulic · 10 months ago
    Hi, i added this plugin in sidebar,and everything is perfect on single post pages but on my homepage and pages nothing show, is there any way to display it in sidebar on homepage too?
    please help
    boban
  • Chris · 10 months ago
    Just upgraded to the newest version and...no more displaying of posts! Worked like a charm before the change last week, but now the post no longer renders. I have it set to show a single post in a red block on my sidebar (non-widget; manual coding) and loved your plug-in. Now, flummoxed. I checked out the code and cannot figure out why it will no longer work. Weird. Grr. Thoughts?
  • phoenix.heart · 10 months ago
    Chris, as you can see it still works for me... Could you please check if you're using a div with ID "ajaxrp", because the plugin would fill this div with the posts.
    And btw, your site is very stylish. Awesome :)
  • David · 10 months ago
    Hi I would like to add 'random post' to my original post showing in the main page (As Announcement). How can i do that?
  • phoenix.heart · 9 months ago
    Hi David, have you tried the tag?
  • robert aghat · 9 months ago
    nice?
  • David · 9 months ago
    Can u advice what tag should i add in the 'post' field?
  • Der Schweizer Narr · 9 months ago
    nice plugin phoenix!  :)

    only idee... it is possible  to prefer radom postings again the actual tag clouds ?
    example:
    - when tags mostly used, then prefer radom postings for this tags

    Why this?  On my blog, tag cloud reflect my main interest's.
  • TomsTricks · 9 months ago
    Thanks for this great plugin.After using this plugin in my site,the Pages/visit ratio dramatically increases.
  • Valerie · 9 months ago
    Great idea for a plugin! I'm currently using the Random Posts plugin by Rob Marsh, because I can set it to show only the image and link to the article.  It's the only one I've seen that does that.  But he seems to have stopped supporting it.  Any chance you can make yours do the same?  I'd love to have the Ajax function to get past my caching as well as an active author.
  • phoenix.heart · 9 months ago
    Hi Valerie, I don't know about the images - where are they from? About the link, you can use {url} tag to "Formart each item in the list".
  • Valerie · 9 months ago
    The images are set via custom field when creating a post. Take a look at the sidebar on my site - see the Be Random area?  Each of those pics links to its associated post.  That's what I'd like to achieve with your plugin.  Possible?
  • phoenix.heart · 9 months ago
    Sorry Valerie, I'm afraid custom fields have not been supported in this current version of Ajax Random Posts (yet). Definitely I will think about it in the next version.
  • Gurumustuk · 8 months ago
    Would be great to make a widget option as well. It's no fun to have to harcode php code in a template file....then when you update it....or replace it get's overwritten.
  • edo · 8 months ago
    <cite>Yeah, just like Gurumustuk, I' also wait for the widget option. </cite>Nice plugin though...
  • blued888 · 8 months ago
    Great plugin! But somehow I can't seem to get it to work on my index.php page. Is it restricted to single.php only? Thanks!
  • phoenix.heart · 8 months ago
    Hi, as for now the plugin uses a post's ID to exclude it from the returned results, that's why it only works with single.php. However, I'm thinking of a way to overcome this limitation. Hopefully it wouldn't be a problem in the next version.
  • blued888 · 8 months ago
    phoenix.heart,

    Hi, it would be great if it can also be used on other pages (index.php, category.php, page.php, etc). Would possibly, greatly increase page views.

    Looking forward to the next version!
  • iTouchTW · 7 months ago
    That's a great plugin
  • blued888 · 7 months ago
    Chiming in again! It has increased page views on my site since search engine traffic is offered select posts from my information pool. It allows them to "hop around" my blog.

    Thanks! Will be sure to check out the next version once available!
  • Rob Angeles · 7 months ago
    Hi! I tried installing this awhile ago and when I tried testing it, it was taking too long to load one blog post. There was no error during the plugin activation.

    Thanks!
  • Lamnk · 7 months ago
    A widget for the sidebar would be nice