dynamic content
-
Hi,
I am using wp super cache 1.4.4 and wpml multilingual cms 3.2.2 with wordpress 4.2.4.
I have the following situation. In my custom theme I have a content in the footer which shouldn’t be cached. After some research I found out that this would be possible by enabling the dynamic page content in the BE. So I enabled it and followed the example in the dynamic-cache-test.php by copying the first example of it into my functions.php file of my theme.
I made the modification to my footer.php so it would call dynamic_cache_test2_template_tag(). I clear the caches and reload the page for the first time. The “<!– Hello world at ” . date( ‘H:i:s’ ) . ” –>” Text appears in my source Code as it should. When I reload my page again I get the content string of DYNAMIC_CACHE_TEST_TAG instead of the “<!– Hello world at ” . date( ‘H:i:s’ ) . ” –>” Text (which is wrong).
If I call the dynamic_cache_test_template_tag() function from the dynamic-cache-test.php then the “<!– Hello world at ” . date( ‘H:i:s’ ) . ” –>” Text gets displayed after every page reload with the updated time.
What am I doing wrong? is it not possible to have the code for dynamic content inside a theme?
Thanks a lot for your help!
- The topic ‘dynamic content’ is closed to new replies.