Blank detail with posts loop
-
If I add post type using a loop to page, I will not see the detail of the event (blank content). Example:
————————————————————–
function team_list_func ($atts) {global $post;
extract (shortcode_atts (array (
‘class_name’ => ‘expert’,
‘category’ => ”,
‘id’ => ‘0’
), $atts));$args = array (
‘posts_per_page’ => 100,
‘nopaging’ => true,
‘orderby’ => ‘menu_order’,
‘post_type’ => ‘expert’
);$myposts = NEW WP_Query ($ args);
$output = ‘<div class = “team list”>’;while ($myposts-> have_posts ()): $myposts-> the_post () …
————————————————————–
If I comment out the while part, the detail works normally.
What could be the problem?
- The topic ‘Blank detail with posts loop’ is closed to new replies.