Support » Plugins » Extra loop on single page works as PHP include but not via AJAX

  • See http://www.wind-watch.org/news/?p=18791. After the post, a $wpdb query is run to pull out the latest “select” posts, which are tagged as such using the DS-Rating plugin, which adds a meta key to each post.

    This query is done in an included PHP file, which is also used on the site’s home page (the site uses a few WP blogs), and works fine. A similar query is done on the blog’s home page in the sidebar.

    In the blog’s sidebar and on the site’s home page, the PHP file is run via AJAX. But that fails on the single-post page.

    Again, the query works as an included PHP file, but nothing is displayed when the same PHP file is called via AJAX.

    What could the reason be?

    I would like to use AJAX so that the display stays up to date on cached pages.

  • The topic ‘Extra loop on single page works as PHP include but not via AJAX’ is closed to new replies.