WordPress.org

Ready to get started?Download WordPress

Forums

Who can help me? (7 posts)

  1. Pucca
    Member
    Posted 9 years ago #

    I'm looking for help which can help me to make my design of wordpress ok..
    This is my new site design: http://www.bluesprinkles.com/testpagina.html and i want my wordpress in the layer where you can read lalala but i never worked with PHP and it looks very complex.. it must look the same coz i dont want one page which looks different.. who can help me or knows an easy to understand help page so i can make it the same as my testpagina.html?

  2. Brak
    Member
    Posted 9 years ago #

    For starters, put this code into the main area
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date('','<h2>','</h2>'); ?>
    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>
    <div class="storycontent">
    <?php the_content(); ?>
    </div>
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>

    This will put your blog there. You'll need to do some styling and such, but I hope this is pretty straight forward. What I've posted is only the main blog area (where new posts appear)
    Now, do you want the WP sidebar in your sidebar as well? Why don't you try with what I gave you, and see if you can figure the rest out. Otherwise, don't hesitate to post back here with some questions :)

  3. Pucca
    Member
    Posted 9 years ago #

    It does kindda load on the good place but i just dont get it..all the PHP is soo wierd

  4. Brak
    Member
    Posted 9 years ago #

    I don't see how it's soooo weird to people. All you have to do is look at it in common sense. For example, what do you think this does
    <?php the_content(); ?>
    I'd be willing to bet it spits out the content of the post. It's all pretty simple once you get your mind wrapped around it. Also be sure to check out wiki.wordpress.org and their template tags section, it explains all the tags and what they do.

  5. Pucca
    Member
    Posted 9 years ago #

    Sorry i still dont get it..i get errors all the time..
    I decided to first look if i'm able to make it work and then place it in the layer.. now i want it simple with a title, comments thingy, no callendar or archives(i wanna place them somewhere else if thats possible i wanna make an other archives page), my name date and time..
    and now i made this:
    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    </head>
    <body>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date('','<h2>','</h2>'); ?>
    <?php endforeach; else: ?> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php endif; ?>
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?>
    <
    <?php the_content(); ?>
    <
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    I DONT GET IT

  6. Pucca
    Member
    Posted 9 years ago #

    ohh and i dont want new layers..only maybe a pop up for comments

  7. Pucca
    Member
    Posted 9 years ago #

    OHHH wow!! Its working now!! I had a good php file all the time dump me

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.