Support » Themes and Templates » Merge wordpress with my layout

  • hi, i want to use my blogs main content in the layout of my site, however i am not using css, i am using tables. is there any php tags that i put into my html that will load my blogs content into the table. i have used another blog program that loaded my blogs but its very limited. . if it is possible to include my content with a tag , is it possible to include comments and comment entry screen and log in screens the same way?

    if its not possible to do the above , i am havin problems editing bits of the wordpress layout, i have gone thru tons of wp files and i cant find how to:

    change the background on all pages to a image on my server or a colour

    change the blue blog header image

    change the colour of all the text, and the colour inside the boarders of the default template

    any help would be wicked, thanks for readin this

    change the background

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff


    Just stick The Loop inside your news table.

    i just tried what u said it didnt work, thanks for replying tho

    ok lets say i have my index.htm already designed
    and its in a different directory to my wordpress folder. and in the news column i want my blog to appear. the problem with the Loop codes is that they dont refer to either where my blog stored i think. i tried moving my index.htm page to the wordpress folder but i got lines of error messages. . isnt there like a tag that goes ?<include /wordpress/index.php/> etc etc to make the blog contents appear in my columns?

    i dont know if im takin the long way round to explain this. i basically need to know what folder to store my blog page, and what tags to use to get the content in there.

    this didnt work:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    I did this:

    <?php $blog = 1; require(‘wordpress/wp-blog-header.php’); ?>
    ^ put this before your <html> tag

    And then put this where you want your post titles to show, i have added a bit so it does not show category 4, my news posts.

    <?php rewind_posts(); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php if ( !(in_category(‘4’)) ) { ?>
    <?php the_title(); ?>
    <?php the_time(‘F jS, Y’); ?>

    <?php } ?>
    <?php endwhile; else: ?>

    <?php _e(‘Sorry, no posts matched your criteria.’); ?>

    <?php endif; ?>

    hope that helps, Kris.

    hey kris thanks for that, i will try it when i get home from work. just wondering have u got a link to ur site so i can see how it works?

    and you know you said you added a bit to stop ur catagory 4 showing, did u add a ‘ ) ‘ ? if i remove this and change the 4 to a 1 for my default catagory will this work?

    also, once i have my content merged in is there anyway i can merge the ‘leave a comment’ page into the rest of my site using the technique you used kris? and i guess the same goes for viewing comments also. just so all layouts look the same thru out

    thanks for the help!

    Okay, looks like I just asked the same question you did:

    a weird thing is happenin, when i make a blank php page the code works fine, but when i try to paste it into my current layout i get the error
    Fatal error: Call to undefined function: rewind_posts() in /home/muggzy/public_html/test.php on line 76

    see it working here:
    if u click on the febuary 2005 link it goes to no where, i dont know why, i added the tag
    <?php wp_get_archives(‘type=monthly&limit=12’); ?>

    from the tutorials. i also wanted to add in make a comment, view comments etc. anyknow whats goin on?

    a lot of the tags i am adding from the template tag tutorial screen appear on my page but when i click on the them i get to a page not found, any ideas people?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Merge wordpress with my layout’ is closed to new replies.