Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Page Template Footer showing incorrectly


  #1  
Old Nov 26, 2012, 05:31 PM
bizkit01
 
7 posts · Jul 2012
[SOLVED] Page Template Footer showing incorrectly

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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
disable all your plugins and see what happens
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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;
?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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.

Bookmarks



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 09:06 PM.


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