Some browser not showing some wp_queries
-
Bewildered. I’m having multiple second loop queries
$my_query1 = new WP_Query(‘something’);I numbered each separately just to be sure as I’m not totally on top of this how it works. For some reason some of them doesn’t work on some browser. Firefox shows them all but Opera and IE7 doesn’t. Well, “not showing” really means the query not providing anything, I suppose.
Here are two, of which one show up and other one doesn’t. Can you tell me what’s the bug, please.
WORKS:
foreach((get_the_category()) as $cat) {
$myCatName = $cat->cat_name;
$myCatID = $cat->cat_ID;
print(“- <h2>Some more from the same category</h2>
- “);
- <a href='”);
the_permalink();
print(“‘>”);
the_title();
print(“
$my_query2 = new WP_Query(‘cat=’.$myCatID);
while ($my_query2->have_posts()) : $my_query2->the_post();
print(““);
endwhile;
print(““);}
DOESN’T WORK on some browsers
$my_query3 = new WP_Query(‘cat=7&showposts=3’);
while ($my_query3->have_posts()) : $my_query3->the_post();
print(“<h2>”);
the_title();
print(“</h2>”);
the_content(‘Read the rest of this entry »’);
endwhile;It is really strange for some of them to work.
(i tried to edit some of above, but some html is missing. I hope it’s still readable, sorry)
thanks in advance
- The topic ‘Some browser not showing some wp_queries’ is closed to new replies.