pre query affects on confirm result
-
I am using below query in my header template:
<?php global $post; $myposts = get_posts('numberposts=10&category=73'); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" ><?php the_excerpt(); ?></a></li> <?php endforeach; ?>
When I clicked on the link in the confirmation email, the confirmation page showed up with Subscription Confirmed in first post of above query instead of S2 default page’s content.
Note1. Other messages like confirmation_sent showed up properly.
Note2. When I use “
bm_better_excerpt(999, '')
” instead “the_excerpt()
” or “the_content()
” , the confirmation page showed up properly. (because I use qtranslate plugin, I can’t use this method)Note3. When I try below code instead “
add_filter('the_content', array(&$this, 'confirm'));
” in class-s2-core.php, Does not affect above query but returns blank content:add_action( 'loop_start', 'set_custom_content' ); function set_custom_content() { add_filter('the_content', array(&$this, 'confirm')); }
- The topic ‘pre query affects on confirm result’ is closed to new replies.