WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
WPTouch issues with WordPress 3.1.2 (2 posts)

  1. jeeremie
    Member
    Posted 3 years ago #

    My portfolio page was working just fine on a mobile device until I upgraded to WordPress 3.1.2. Now the page does not display the full content.
    What is weird is that the same code works fine for the desktop version but not for the mobile version anymore. Check the link to see the difference: http://web-kreation.com/portfolio/

    My (simplified) code is:

    <?php
    if (have_posts()) :
    query_posts('posts_per_page=1&cat=129&paged=' . $paged);
    while (have_posts()) : the_post();
    ?>
    
    <?php the_title(); ?>
    <?php the_content(); ?>
    <?php $ptfImgBig = get_post_meta($post->ID, "Portfolio Image Big", $single = true); if($ptfImgBig !== '') { ?>
    <div class="ptf-big-img"><?php echo $ptfImgBig; ?></div>
    <?php } $page_num =  $page_num + 1; ?>
    
    <?php endwhile; endif; ?>
  2. jeeremie
    Member
    Posted 3 years ago #

    Hmm, I found the problem. In the dashboard, I had set to exclude category 129: "Excluded Categories - Categories by ID you want excluded everywhere in WPtouch."

    Before this option only excluded from the blog, not from pages. (I forgot to mention the code above is in portfolio.php).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags