Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   2 columns for posts on blog home page? (http://forum.bytesforall.com/showthread.php?t=1288)

juggledad Jul 10, 2010 10:34 AM

see HOWTO: "JUGGLEDAD's two columm posts" PAGE template with posts above the columns (http://forum.bytesforall.com/showthr...6616#post36616) in the gold forums Tutorials

mnl Jul 19, 2010 02:42 PM

Hi. I've successfully implemented this on another site but for some reason (that i hope can be uncovered here) this site won't cooperate. i have the 2 columns but they show only as full posts, not excerpts as directed in the theme options. i had the excerpt length at 20, then 30 but that didnt help. i also removed the custom [more] link, leaving the default.

the site will have scores of updates and the 2 col view will allow them all to show on a page. thanks for your help!

www.collegefootballinjuriesplus.com
wp 2.9.2
ata 3.4.6

Volhova Jul 30, 2010 02:17 AM

Quote:

Originally Posted by Flynn (Post 5096)
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] <table cellpadding="0" cellspacing="0" border="0">
<?php $column = 1; ?>
<?php // The LOOP. Do this for all posts:
while (have_posts()) : the_post(); $postcount++; ?>

...

Hi, Flynn. My problem is exactly the same like MNL's one.

I did everything here, plus I put everywhere in Configure Excerpt page "only excerpts", , in the "Show the first X posts on HOME page as full posts?" I set "0", but on my first page you could see the all full posts, not the excerpts.

Can you help me resolve this problem? Thanks in advance.

I'm in WP 3, Atahualpa 3.5.3

btw, here is the site: http://shadowdance.comeze.com/

juggledad Jul 30, 2010 03:50 AM

see HOWTO: "JUGGLEDAD's two columm posts" PAGE template with posts above the columns (http://forum.bytesforall.com/showthr...6616#post36616) in the gold forums Tutorials

Volhova Jul 30, 2010 03:55 AM

Thanks, but I haven't permission to access that page. :) That's why I'm asking here. :)

juggledad Jul 30, 2010 04:07 AM

sorry, the gold forums are available to members that have made a $20 or more donation.

New WordPress Fan Aug 12, 2010 04:27 PM

Hi,

In Atahualpa 3.5.1, WordPress 3.0, I would like to use the same horizontally sequenced two-column method as Redbiker mentioned above:

http://perishablepress.com/press/200...ss-post-order/

But, can someone tell me exactly where to put the PHP/HTML code portion of the Perishable Press code?

I am assuming that you would create a custom page template by copying the index.php from the Atahualpa351 Theme folder. But, exactly where in this new custom page template.php would you insert the PHP portion of the Perishable Press code?

The CSS portion, I assume goes in the ATO> CSS/ HTML Inserts. Correct?

Many thanks!

edyrio Aug 19, 2010 01:48 PM

Dear Friends,

I am producing a new site using the Atahualpa 3.5.3, used the tip of Flynn (http://forum.bytesforall.com/showthread.php?t=1288) to make it with two columns and would like to know how to put two independent loops, showing the two most recent posts, each a separate category.

Ex: Four posts on the main page, two of a category with different design and two of another.

Thanks.

jeckert Aug 25, 2010 02:43 PM

Quote:

Originally Posted by edyrio (Post 40936)
Dear Friends,

I am producing a new site using the Atahualpa 3.5.3, used the tip of Flynn (http://forum.bytesforall.com/showthread.php?t=1288) to make it with two columns and would like to know how to put two independent loops, showing the two most recent posts, each a separate category.

Ex: Four posts on the main page, two of a category with different design and two of another.

Thanks.

I'm also looking for the same thing, I think.

warra Dec 1, 2010 06:57 PM

Greetings Flynn, I'll spare you the newbie excuse and admit my problem is wetware. I've followed your instructions and have split the post column in two. How do I make those columns equal in width? I'm using WordPress 3.0.2 and Atahualpa 3.5.3. My thanks in advance.

juggledad Dec 1, 2010 07:13 PM

see HOWTO: "JUGGLEDAD's two columm posts" PAGE template with posts above the columns (http://forum.bytesforall.com/showthread.php?t=8056) in the gold forums Tutorials

Sangennaru Dec 2, 2010 04:11 PM

your link appears to be dead to me.


i'm having some big trouble: i've found some nice script to have 2 columns on my blog, but all them are not totally good, since i can't chose border options or text colour!



is there any kind of simple and effective horizontal 2 column script?
my php level is around 0, so the simpliest is the best! ^^


thanks!

juggledad Dec 2, 2010 07:45 PM

Oh sorry, that's the Gold Forum and is available to members who have donated $20 or more

Sangennaru Dec 3, 2010 05:18 AM

don't worry. i was just looking for a 2 column plugin or script for making post looks in 2 columns, horizontally setted, but with all the settings and appearance as normal!

juggledad Dec 3, 2010 05:40 AM

(sorry, there was a problem with the link - I fixed it but you won't be able to see it unless you are a Gold Member)

Well, I think that template would do the job for you
Quote:

This page template will display the posts in two columns and by adding a custom field, you can specify how many posts should show up spanning the two columns

Here is what you do:
1) Install the attached template into the atahualpa folder
2) add a new page and use the template 'JUGGLEDAD's two columm posts'
3) add a custom field called 'posts_above_the_column'
4) in the value feild for the custom field, enter the number of posts you want to show above the columns

bender57 Dec 14, 2010 07:49 AM

Quote:

Originally Posted by Sachein (Post 25011)

I am trying desperately to insert the code. Could you please let me know where to insert it?

code from : http://wordpress.org/support/topic/p...umns?replies=7

Is it in "The Loop" of center column?
or
in the editor?

Thanks a lot for your help

juggledad Dec 14, 2010 08:56 AM

bender57 - this thread is about 2 column pages. If you want to start a new thread on three column pages, feel free, but let's keep this to the current topic. THanks

bogdanvelea Dec 19, 2010 08:39 PM

Hello!

I made all changes that you told me, but the first page (home page) doesn't look very good. Page 2, page 3 etc look very good.. (title and picture) but in home page you can see only title without images... Why pages 2, 3, 4 etc are looking good and just first page (home page) is crashed?

My website is: http://wowallpapers.com

This page looks very good: http://wowallpapers.com/wallpaper/an...ts-wallpapers/
This page looks very good: http://wowallpapers.com/page/2/
This page doesn't look very good: http://wowallpapers.com/
WHY?

juggledad Dec 20, 2010 12:57 PM

what are the exact changes you made?
have you added any code to The LOOP?

bogdanvelea Dec 20, 2010 02:22 PM

In index.php I replaced

<?php // The LOOP. Do this for all posts:
while (have_posts()) : the_post(); $postcount++; ?>

with

<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

<?php // END of the LOOP
endwhile; ?>

with

</td>

<?php if ($column == 2) echo "</tr>"; (($column==1) ? $column=2 : $column=1); ?>

<?php // END of the LOOP
endwhile; ?>
</table>

And this is INDEX.php:

<?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header(); ?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] == 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>

<?php /* This outputs the next/previous post or page navigation.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_above_loop']); ?>

<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">

<?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
$odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' : 'even-post' ); ?>

<?php /* This is the actual Wordpress LOOP.
The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_inside_loop']); ?>

</td>

<?php if ($column == 2) echo "</tr>"; (($column==1) ? $column=2 : $column=1); ?>

<?php // END of the LOOP
endwhile; ?>
</table>

<?php /* This outputs the next/previous post or page navigation and the comment template.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_below_loop']); ?>

<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; /* END of: If there are no posts */ ?>

<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>

<?php get_footer(); ?>

mathur.rajeev Dec 23, 2010 01:59 AM

Quote:

Originally Posted by redbiker (Post 5124)
Thanks Flynn. I found a slightly different way of doing it on my own in the end.

I've added a home.php file to the theme then found a neat way of doing a two column layout here...

http://perishablepress.com/press/200...ss-post-order/

@Redbiker: If you have implemented the code given in mentioned site, would you be kind enough to share step by step instructions for atahualpa users.

thanks in anticipation.

rjsikkel Jan 15, 2011 08:14 PM

I'm a newcomer with WordPress. My site http://rekerlanden.nl is in two languages, for that reason I'm interested in a 2 columns solution for posts. I studied the complete discussion. Of course it is much better and nicer to make adjustments to the source. But I'm completely happy with the effects of a small tabel in the edit post box, may be because I do the entries by hand.
My table is very simple and the effects are great:

<table>
<tr>
<td width="50%" align="justify" valign="top">DUTCHtext</td>
<td width="50%" align="justify" valign="top"><em>GERMANtext</em></td>
</tr>
</table>

Volhova Jan 18, 2011 01:01 AM

I think I've found a solution.

First, I've followed exactly the steps, described by Flynn in the first page of the thread.

In the index.php of the theme I've replaced
Quote:

<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
with
Quote:

<table cellpadding="10" cellspacing="10" 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" width="50%">
and

Quote:

<?php endwhile; ?>
with

Quote:

</td>

<?php if ($column == 2) echo "</tr>"; (($column==1) ? $column=2 : $column=1); ?>

<?php // END of the LOOP
endwhile; ?>
</table>
I've saved the file like home.php and uloaded into the ATO theme directory. I've made the changes with Notepad++ editor.

Then, in Options, I limit the publications on the first page in 4.

For the publications I'm using the Read More option.

Thanks a lot!

jmc44 May 10, 2011 08:07 AM

Hi Flynn,
thanks for your efforts on the theme and the countless hours in support!

I've followed your instructions and it works fine, expect that the top right cell is empty - regardless of how many posts there are...

I'm using V3.6.4 - should it still work the same way?

juggledad May 10, 2011 08:17 AM

Things are a little different in 3.6.x did you follow the original instructions or the info from this
Quote:

see HOWTO: "JUGGLEDAD's two columm posts" PAGE template with posts above the columns (http://forum.bytesforall.com/showthr...6616#post36616) in the gold forums Tutorials


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

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