Ok try
$pagepull = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish' ORDER BY menu_order", ARRAY_A); $i = 1; foreach ($pagepull as $single_page){ echo "<div class=\"section\"><ul><li class=\"sub\" id=\"" . $i . "\"><div class=\"insection\">"; echo apply_filters('the_content',$single_page['post_content']); $i++;
Wordpress accepts your content and applies filters to it. You must register the filter and analyze the content.
If your topic does not display your shortcodes, you are likely to display the message content, preventing Wordpress from filtering it.
Calling the get_the_content () function for a message does not trigger a filter for short codes (if any).
To apply
<?php apply_filters('the_content',get_the_content( $more_link_text, $stripteaser, $more_file )) ?>
Link: http://codex.wordpress.org/Function_Reference/get_the_content
Note: many plugins register content filters for implementing shortcodes!
source share