datakid
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Loop/Column css issuesDon’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
Forum: Fixing WordPress
In reply to: The Loop, Front page, Pages and excerptsOK!, 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
Forum: Fixing WordPress
In reply to: The Loop, Front page, Pages and excerptsOH! 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…
Forum: Fixing WordPress
In reply to: The Loop, Front page, Pages and excerptsOk, 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; ?>
Forum: Fixing WordPress
In reply to: The Loop, Front page, Pages and excerptsSorry, 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.
Forum: Themes and Templates
In reply to: Child theme not showing upChris 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.
Forum: Plugins
In reply to: [Plugin: eShop] shipping address is hidden [error]Does it have to do with shipping rates? ie, if you have no shipping rates set, it doesn’t show?
Forum: Plugins
In reply to: [Plugin: eShop] shipping address is hidden [error]I am also having this problem – settings are at no, but there is no mailing address in the cart?