WordPress.org

Ready to get started?Download WordPress

Forums

Display Random Post on External non-Wordpress Site (6 posts)

  1. mujahideenryder
    Member
    Posted 6 years ago #

    Hello,

    I was wondering how could I display a random post on an external site that is not using WordPress?

    Thanks!

  2. mujahideenryder
    Member
    Posted 6 years ago #

    I may not be clear in the first post. What I mean is I would like to link to random posts on my blog by displaying a widget or some sort of code on a website that does not have wordpress installed.

  3. mujahideenryder
    Member
    Posted 6 years ago #

    Just bumping this topic to see if anyone has any idea how to do this.

  4. moshu
    Member
    Posted 6 years ago #

    I have seen solution to display the latest post(s) on another site, e.g. with RSS feeds, but never seen a solution for remote displaying of random posts.

  5. mujahideenryder
    Member
    Posted 6 years ago #

    Yeah. I have been literally searching for months for something like this, but I haven't found anything.

    It seems that it will require some heavy programming.

  6. jamis
    Member
    Posted 6 years ago #

    I wrote a tutorial that may be able to help you.

    http://www.bluebreeze.net/blog/?p=18
    or
    http://www.bluebreeze.net/blog/?p=11

    I think you would just have to modify the code a little. Instead of using 'localhost' you'd have to use the IP Address of your database. And if it's in a different domain you'd have to enable remote mysql access on your site that holds the database you are trying get your posts from.

Topic Closed

This topic has been closed to new replies.

About this Topic