trouble with dynamic content
-
I’ve read through the dynamic content section and setup WP Super Cache in both PHP and Legacy modes with Late Init enabled and no matter what I do I don’t seem able to keep a section of code dynamic.
I’m trying to pass a session variable that works fine without cache enabled.
I’ve tried raw code wrapped in the tags as defined in the FAQ;
<!–mfunc
get_form_popup();
global $wp_query;
$_SESSION[‘popupwpparentpage’] = $wp_query->post->post_parent;
$_SESSION[‘popupwppageID’] = $wp_query->post->ID;
–>
<?php get_form_popup();
global $wp_query;
$_SESSION[‘popupwpparentpage’] = $wp_query->post->post_parent;
$_SESSION[‘popupwppageID’] = $wp_query->post->ID; ?>
<!–/mfunc–>I’ve also created a function and used the other tag;
<!–dynamic-cached-content–><?php
get_form_popup();
?>
<!–
<?php
get_form_popup();
?>
–>
<!–/dynamic-cached-content–>The session variable remain unset with WP Super Cache ? Can anybody see what I’m doing wrong ?
Thanks,
Nic
- The topic ‘trouble with dynamic content’ is closed to new replies.