Magic Fields Displaying As News Posts!
-
So I have this code I use for the magic fields it works on the main theme but on the mobile theme its been converted from twentyeleven. It keeps showing up as a news post when I want it to show up as its own posts like the code should be doing… Any idea why this is not working?
<h2 class="main">Videos</h2> <ul id="videos-home"> <?php $VideosHome = new WP_Query(); $VideosHome->query('showposts=9&cat=12'); while ($VideosHome->have_posts()) : $VideosHome->the_post(); ?> <?php $count = 0; ?> <li> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail('video-home-thumb'); } else { ?> <img src="<?php bloginfo('template_url');?>/images/no_image_available_r.jpg" alt="No Thumbnail" class="post_thumbnail"> <?php } ?> </a> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><h2 class="video_title"><?php $mytitle = get_the_title(); if ( strlen($mytitle) >80 ) $mytitle = substr($mytitle,0,80); echo $mytitle; ?></h2></a> <span class="video_home_added"><strong>Added:</strong> <?php the_time_ago() ?></span> <span class="video_home_views"><strong>Views:</strong> <?php if(function_exists('the_views')) { the_views(); } ?></span> </li> <?php if ($count == 3) { ?> <li class="clear"></li> <?php } else { } ?> <!--/post-<?php the_ID(); ?>--> <?php $vidcount++; ?> <?php endwhile; ?> </ul> <div class="clear"></div> <div class="more"> <a href="/v5/category/videos/">More Videos</a> </div> <div class="clear"></div>
Like I said works on the main site but when I use the converted mobile twentyeleven site does not work? What do I need to fix and thanks…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Magic Fields Displaying As News Posts!’ is closed to new replies.