• I’ve got a “did you know” part of my page, where it loads up a random fact (custom post type) via ajax. There is a button for loading the next random fact.

    The execution is through including page template (template-random.php) on the home page. In this template there is query_posts function for getting 1 post with image and excerpt.

    With W3 Total cache enabled, the ajax is not wokring and the random button dont do nothing. How can I exclude this one thing from caching?

    https://www.ads-software.com/plugins/w3-total-cache/

  • The topic ‘Ajax random post not working’ is closed to new replies.