Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Page Template Footer showing incorrectly


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 26, 2012, 05:31 PM
bizkit01
 
7 posts · Jul 2012
I am starting a new Page template to add thumbnails of all child pages on a page with this template. I got the thumbnails showing up properly, but the Footer on the page is left-aligned and incorrect. I looked at it and it has colspan="1" instead of the usual colspan="2". Can someone tell me why it is doing this when I'm simply using the same <?php get_footer(); ?> at the end of the template that is identical to index.php's Footer?

Full template (Work in progress):

Quote:
<?php /* Template Name: Image Thumbs Template
*/ ?>

<?php get_header(); ?>

<h1>Title</h1>

<div class="maincontent">

<?php
query_posts('posts_per_page=5&post_type=page&post_ parent='.$parent);
while (have_posts()) : the_post();
?>

<?php echo get_the_post_thumbnail( $post_id, $size, $attr ); ?>

<?php endwhile; ?>
</div>

<?php get_footer(); ?>
I can't link to the site, as it's a client's dev environment - but it simply includes <td id="footer" colspan="1"> instead of "2". A manual fix would be ok too, as I can simply hardcode it into this one page.

Last edited by bizkit01; Nov 26, 2012 at 05:37 PM.
  #2  
Old Nov 26, 2012, 05:48 PM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
disable all your plugins and see what happens
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 26, 2012, 05:55 PM
bizkit01
 
7 posts · Jul 2012
Just disabled all plugins and it's the same.
I noticed it's very similar to what this guy was getting: http://forum.bytesforall.com/showthread.php?t=15624
  #4  
Old Nov 26, 2012, 06:32 PM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
try starting your code with th efollowing - which is the begining lines of index.php
HTML Code:
<?php 
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
global $bfa_ata_postcount;
?>
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Nov 26, 2012, 08:41 PM
bizkit01
 
7 posts · Jul 2012
That fixed it, thanks a lot for your help as always juggledad.
  #6  
Old Nov 27, 2012, 01:27 AM
bizkit01
 
7 posts · Jul 2012
Can I ask a followup question about this Template?

I ended up with the Template code below, but the subpages show up in alphabetical order. Usually you could add "<?php wp_list_pages('sort_column=menu_order'); ?>", but I'm a bit lost about where to add the argument:

PHP Code:
<?php /* Template Name: Image Thumbs Template
*/ 
?>

<?php 
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
global 
$bfa_ata_postcount;
?>

<?php get_header(); ?>

  <h1>Reviews</h1>

<?php $pages get_pages(array('child_of'=>164)); ?> 
  <?php foreach ($pages as $page): ?>
    <div class="reviews"><h6>
      <?php echo '<a href="' get_permalink$page->ID ) . '" title="' esc_attr$page->post_title ) . '">';
      echo 
$page->post_title;
      echo 
'</a>'?></h6>

      <?php echo '<a href="' get_permalink$page->ID ) . '" title="' esc_attr$thumbnail->post_title ) . '">';
      echo 
get_the_post_thumbnail($page->ID'thumbnail');
      echo 
'</a>'?>
    </div>
  <?php endforeach; ?>

<?php get_footer(); ?>
This is a real fun template to add a grid of subpage titles and thumbnails if anyone wants to use it.
  #7  
Old Nov 27, 2012, 06:22 AM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I would see if you could pass the sort to the get_pages() function
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #8  
Old Nov 27, 2012, 06:43 PM
bizkit01
 
7 posts · Jul 2012
Got it:

<?php $pages = get_pages(array('child_of'=>164, 'sort_column'=>'menu_order')); ?>

Thanks! This can be closed.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sociable Not Showing in Footer on Posts in the Home Page Whatsthatcat? Plugins & Atahualpa 1 Feb 22, 2011 05:55 PM
Footer for posts is not showing on the Home page socium Comments, trackbacks & pings 0 Feb 22, 2010 05:35 PM
[SOLVED] Previous Post / Next Post showing up incorrectly mkhobson Page & Category Menu Bars 1 Sep 17, 2009 11:02 AM


All times are GMT -6. The time now is 08:32 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.