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 »

2 columns for posts on blog home page?


  #76  
Old May 10, 2011, 09:12 AM
jmc44
 
7 posts · Apr 2011
Quote:
Originally Posted by juggledad
Things are a little different in 3.6.x did you follow the original instructions or the info from this
I believe I probably followed the original instructions - please can you repost that link - it's incomplete and giving me a 404 error.

thanks

PS: I did try to achieve the same thing with your template, but receive an error message on that too - could you tell me which would be the most correct way, knowing that I need the homepage and category lists to display in 2 columns if possible...

Last edited by jmc44; May 10, 2011 at 09:16 AM.
  #77  
Old May 10, 2011, 10:21 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I fixed the link.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #78  
Old May 11, 2011, 02:22 AM
jmc44
 
7 posts · Apr 2011
Thanks Larry,
now the link works I realise that I have already been to that post - and am working thru the error msg I received
  #79  
Old May 12, 2011, 05:50 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) did you create a home.php which was a copy of the template?
2) did you edit the home.php and change the '$posts_above_the_column = 0;' to the value you want?
3) comment out the next two lines - change them from
HTML Code:
	foreach ( $my_custom_field as $key => $value ) 
		if ($key == 'posts_above_the_column') {$posts_above_the_column = $value;} 
to
HTML Code:
//	foreach ( $my_custom_field as $key => $value ) 
//		if ($key == 'posts_above_the_column') {$posts_above_the_column = $value;} 
4) at 'dashboard->settings->reading->Front page displays' set it to 'Your latest posts'
test it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #80  
Old May 15, 2011, 11:43 AM
jmc44
 
7 posts · Apr 2011
Ahhh - it seems that I missed the 'comment out the two lines...'

it's working now - many thanks
  #81  
Old May 25, 2011, 04:51 PM
thekjub9
 
41 posts · May 2011
Quote:
Originally Posted by Flynn
Read the bottom of this post first on how to apply this to only the homepage

In index.php replace

PHP Code:
    <?php // The LOOP. Do this for all posts:
    
while (have_posts()) : the_post(); $postcount++; ?>
(or similar, I am already in 3.3.3)

with

PHP Code:
    <table cellpadding="0" cellspacing="0" border="0">
    <?php $column 1?>
    <?php // The LOOP. Do this for all posts:
    
while (have_posts()) : the_post(); $postcount++; ?> 

        <?php if ($column == 1) echo "<tr>"?>

        <td class="column<?php echo $col;?>" style="vertical-align: top">
and still in index.php replace

PHP Code:
    <?php // END of the LOOP
    
endwhile; ?>
with

PHP Code:
        </td>
        
        <?php if ($column == 2) echo "</tr>"; (($column==1) ? $column=$column=1); ?>
        
    <?php // END of the LOOP
    
endwhile; ?> 
</table>
And at Theme Options -> Posts or Excerpts
choose "Only Excerpts" everywhere


Or, to limit this to the homepage make a copy of index.php as home.php, apply the above edits in home.php instead of index.php and upload home.php to the theme's directory /wp-content/themes/atahualpa332/, and set Theme Options -> Posts or Excerpts -> Posts or excerpts on HOME page? to "Only Excerpts"

is this still possible in 3.6.7 ? with making home.php and edit the code there ? so when new version comes home.php will stay ?
  #82  
Old May 25, 2011, 06:12 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
There is a thread in the Gold Forums tutorials showing how to do this
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a Home Page with Posts in it? wdycus Post-Kicker, -Byline & -Footer 5 Aug 31, 2010 06:48 AM
[SOLVED] Blog Page causes Home Page Tab to light up as well WebWeaver Header configuration & styling 1 Jun 30, 2009 06:45 PM
Disply posts in all three columns-- plus, ideally, a widget or two, too? petevannuys Sidebars & Widgets 2 Jun 11, 2009 06:51 PM
recent posts in the right sidebar, but not on the home page ind Sidebars & Widgets 1 May 6, 2009 03:49 AM
Limit the number of Posts on Home Page coaxkid Post-Kicker, -Byline & -Footer 4 Apr 12, 2009 06:01 PM


All times are GMT -6. The time now is 01:48 AM.


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