WP Super Cache
Accessing Post Data within "dynamic-cached-content" area (1 post)

  1. brainbrian
    Posted 3 years ago #

    Is there a way to access the post data within a dynamic area of a cached page? I'm using the "dynamic-cached-content" to make specific areas of a template remain dynamic. The content that needs to be dynamic is custom data associated with the post based on certain parameters. I want to be able to access data from the post but just get errors trying to access it after the page is cached the first time. I assume this is because WP is not querying the post like it does by default. Is there anyway to do this?

    Simple example of what I'm trying to do...

    echo $post->ID;
    echo $post->ID;



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic