View Full Version : Wordpress: Fitting it into your own layout problem


drat
09-20-2005, 03:14 AM
I'm sure this isn't the only thread about this problem. Sorry for being yet another post to take up space, but this has been really bothering me. I'm not sure how to add wordpress into my layout, which is a simple table design, and my friend nor any of the numerous tutorials helped me at all. Many of the guides I went to used language far too complex for my poor mind to handle and my mind is no longer like a sponge so I'm not as good at taking things apart and stuff like that as I used to be.

A preview of my layout (http://drat.skullerflies.net/screen.jpg)

Like I mentioned, it's just a simple tables layout. ... Yeah, so if anybody could help me on how to add this wordpress thing, that'd be great! <3

salomeyasobko
09-20-2005, 03:29 AM
this is the basic code i use to display my post in wordpress 1.2.1:


<p>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

<?php the_date('','<h2>','</h2>'); ?>

<?php the_title(); ?>&nbsp; &nbsp;(<?php wp_link_pages(); ?><?php comments_popup_link(__('0 comments'), __('1 comment'), __('% comments')) ?>)


<?php include(ABSPATH . 'wp-comments.php'); ?>

<?php the_content(); ?>


posted by <?php the_author() ?> @ <?php the_time(); ?>

<?php endforeach; else: ?>
<?php endif; ?>
</p>



i'm not great with wordpress, i don't even understand the function of some of the stuff in there.. there's probably some unnecessary stuff but my coding works for me so i'm afraid to take anything out ;)

as for the things i do understand, i bolded the coding that you can move around:


the date of the post

the title of the post

the comments link (popup)

the post itself

who posted

the time of the post


anyone feel free to change/correct what i posted, but that's just what i use, and it works :D

oh and you have to put this before the <html> tag:

<?php
$blog = 1;

/* Don't remove this line. */
require('./wp-blog-header.php');
?>


and put this somewhere between the <html> and </html> tags for the popup comments to work:

<?php comments_popup_script(285, 400); ?>

change the bold parts to the width and height of the popup comments window. i hope that helps a little! :o

drat
09-20-2005, 01:37 PM
Thank you very much! ^_^

Monkey Bizzle
09-20-2005, 07:04 PM
...insert Sal's post here...

I just wanted to say Good Job to Sal =P You really seem to be getting the hang of Wordpress. YAY!!

drat
09-21-2005, 12:08 AM
^_^ Indeed~ This morning I was able to fix everything up and i'm still doing a little bit of cleaning and messing around to get the feel of this.

http://drat.skullerflies.net/blog

here's a testy. Thankies again sal!

salomeyasobko
09-22-2005, 02:08 AM
I just wanted to say Good Job to Sal =P You really seem to be getting the hang of Wordpress. YAY!!
aww thanks!! you helped me SO MUCH, i totally wouldn't get anything if it weren't for you! :)

your site looks great, drat! i reeally like your layout, simple yet nice :) and the panda is cute :buckt: