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)

5thbeatle Jun 25, 2010 02:01 AM

So I did this:

www.prthatroxxx.com

but I cant get the 2 columns to go back to excerpts, they remain full post, and I have all set the settings to excerpts. ? This is perfect theme for my client! He will donate _something_ I just gotta show some results.

I need two columns separable by two categories, which I think I have already done... but cant get posts to go back to excerpts.

kaspar.wimberley Jun 27, 2010 11:56 AM

@reaus

Quote:

Originally Posted by reaus (Post 34044)
@ kaspar.wimberley I figured that it might help to change the width of the center column(style & edit center column)....and to my surprise it actually worked

No luck for me I'm afraid. How exactly did you go about doing this - tried everything now but maybe I missed something here...
Thanks, Kaspar

kaspar.wimberley Jun 27, 2010 03:18 PM

I have now updated to the latest AT in the hope that this might help. Wordpress 3 too.

With the new version of AT the original instructions in this thread for editing the index file (to split the center column into two columns for the posts) doesn't work. :confused:

Is there anybody out there who can post new instructions!

Thanks,
Kaspar

juggledad Jun 29, 2010 05:20 PM

I just tested this in wp 3.0 atahualpa 3.5.1 and it works fine. IF THIS IS A NEW SITE Start by importing the 'ata-classic.txt' style then follow the instructions given and it works fine.

Some of the new styles have css that will prevent this from working.

5thbeatle Jun 30, 2010 05:00 PM

Juggledad thanks for the help on the browser mishap! Flynn's Oct 2008 Post on making 2 columns worked perfectly for me so far. Any pointers on getting the posts to be assignable in one of only two category's and down the page not across?

See:

www.prthatroxxx.com

I want one column of press releases and one column of press coverage, cat 1 and cat 2. Appreciate any help! I am intermediate .php .css .html guy.

juggledad Jun 30, 2010 05:50 PM

well I just published a page templete in the Gold Forum Tutorials, that lets you put a custom query on the page. That might help you out, you could specify the query to be only those two categories.

As for going down the page vers aross, that would envolve a bit of coding since you would have to fires find out how many posts allowed on the page, then read all the posts to find out how many there are (assuming that you want the two columns to be balanced) they you would need two queries, one for the left colum and one from teh right - the right one starting at the half way point of the total posts. Then you could code the html to display the posts.

SJSchafer Jul 8, 2010 09:52 AM

Still not getting an answer. :confused: Is it possible to have the most recent post as a full post showing up normally and have the excerpts show up in columns?

5thbeatle Jul 8, 2010 07:08 PM

Hi Juggledad ! 5thbeatle here ... thanks I had my client donate $20 and as we move forward we can do more. I will be diving into your post in the Gold Forum soon when a get break to work on this site again. Cheers!

juggledad Jul 9, 2010 04:55 AM

to everyone asking the question
Quote:

Is it possible to have the most recent post as a full post showing up normally and have the excerpts show up in columns?
the answer is probably. You will have to change the code so that the first query returned create a table column that spans the two rows in the table.

If I get time (paying customers, my volunteer work, house chores all come first) I may take a look at this and figure out exactly what coding changes are needed and put it into a template.

SJSchafer Jul 9, 2010 03:31 PM

Thanks. I would appreciate that. It is the only thing keeping this from being perfect for a "supersite" ready theme. :)

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

jmc44 May 10, 2011 09:12 AM

Quote:

Originally Posted by juggledad (Post 65107)
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...

lmilesw May 10, 2011 10:21 AM

I fixed the link.

jmc44 May 11, 2011 02:22 AM

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 :)

juggledad May 12, 2011 05:50 AM

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

jmc44 May 15, 2011 11:43 AM

Ahhh - it seems that I missed the 'comment out the two lines...'

it's working now - many thanks


All times are GMT -6. The time now is 12:35 AM.

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