Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter datakid

    (@datakid)

    Don’t fret – I solved the problem by creating the page 23 again (so it was page 61 instead of 23)

    Seems crazy to think that it’s so dependant on the page_id order…

    cheers

    Thread Starter datakid

    (@datakid)

    OK!, I finally got it working using this hack around:

    <div id="content" role="main">
    		<img src="https://192.168.0.250/kit.edu.ki/wp-content/uploads/2012/10/KIT_web_image2.jpg" width="769" height="472">
    
    		<?php $args=array('order' =>'asc','post_type' =>'page','post__in' => array(6,8,10), );	$page_query = new WP_Query($args); ?>
    
    		<?php while ($page_query->have_posts()) : $page_query->the_post(); ?>
    		<div class="section">
    					<?php if ( get_the_ID()==6 ) { ?> <div id="front-box-left">
    					<?php } elseif ( get_the_ID()==8 ) { ?> <div id="front-box-center">
    					<?php }	else { ?> <div id="front-box-right">
    					<?php } the_post_thumbnail() ?>
    					<h2><a href="<?php the_permalink();?>" id="front-box-header"><?php the_title();?></a></h2>
    					<span id="front-box-text"><?php the_excerpt();?></span>
    					</div> <!-- #left-center-right css id -->
    			</div> <!-- #section -->
    
    		<?php endwhile; ?>
    
    	</div><!-- #content -->

    I tried with the_ID() but that didn’t work either – but get_the_ID does, and that’s sufficient

    Thread Starter datakid

    (@datakid)

    OH! Is it failing because the frontpage is not page 6? Should I be asking it to test if the post within the while loop is page 6…

    Thread Starter datakid

    (@datakid)

    Ok, I’ve just discovered is_page() and I’ve also just discovered that it’s not working for me ??

    <?php $args=array('order' =>'asc','post_type' =>'page','post__in' => array(6,8,10), );	$page_query = new WP_Query($args); ?>
    
    		<?php while ($page_query->have_posts()) : $page_query->the_post(); ?>
    		<div class="section">
    					<?php if ( is_page('6') ) { echo "BING" ?> <div id="front-box-left">
    					<?php } elseif ( is_page('8') ) { ?> <div id="front-box-center">
    					<?php }	else { ?> <div id="front-box-right">
    					<?php } the_post_thumbnail() ?>
    					<h2><a href="<?php the_permalink();?>" id="front-box-header"><?php the_title();?></a></h2>
    					<span id="front-box-text"><?php the_excerpt();?></span>
    					</div> <!-- #left-center-right css id -->
    			</div> <!-- #section -->
    
    		<?php endwhile; ?>
    Thread Starter datakid

    (@datakid)

    Sorry, I should add that I have just now discovered that it was also a problem on the local dev machine – for some reason I got lucky on the post ordering and didn’t see that the bug was there.

    Also, now that I think clearly (it’s hard over here in Kiribati ok!) it’s got nothing to do with permalinks either (since even permalinked pages still have a $page_id) – the problem is that I’m a shit php coder and have missed something obvious or simple.

    Sorry for the misdirect.

    Chris has got it right – and his solution is the best from what I can gather – create two files in your child theme, one called theme-options.php that looks like this:

    <?php
    require_once ( get_template_directory() . '/theme-options.php' );
    ?>

    and one called images.php that looks like this:

    <?php
    require_once ( get_template_directory() . '/images.php' );
    ?>

    and the f8-lite child theme works.

    Does it have to do with shipping rates? ie, if you have no shipping rates set, it doesn’t show?

    I am also having this problem – settings are at no, but there is no mailing address in the cart?

Viewing 8 replies - 1 through 8 (of 8 total)