Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter Pressnoob

    (@pressnoob)

    Thanks Max, I got WP literally yesterday. I’m using a self-contained one called Instant WordPress cause I had to do this on short time.

    The editor definitely has its limits. It’s not dispplaying any of the images when I try to edit the HTML in page editor. It’s definitely a pathing issue since I’m using <?php bloginfo(‘template_directory’); function.

    When I put in <?php echo get_bloginfo (template_directory’); into the PHP template itself, it shows the path and what I should be currently using should work. When I put that into the html editor nothing happens… So php tags don’t seem to work in it.

    I’ll look into Coda. Thanks.

    Thread Starter Pressnoob

    (@pressnoob)

    Okay this is embarrassing.After a while I figured out the comments in the HTML were causing the layout breaks. It gets parsed in the wordpress editor.

    Thread Starter Pressnoob

    (@pressnoob)

    I also tried leaving the class as is and wrapping it around a DIV like you did in your code, but the layout still breaks…. But it’s much better than before. Also might be important to note that the images are missing for some reason…. But when I leave the HTML code inbetween header php and footer php in the original document the images show up fine.

    <div id ="container">
     <!-- Start the Loop. -->
     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
      <div class="entry">
       <?php the_content(); ?>
     </div>
    
     <?php endwhile; else: ?>
    
     <p>Sorry, no posts matched your criteria.</p>
    
     <!-- REALLY stop The Loop. -->
     <?php endif; ?>
    </div>
    Thread Starter Pressnoob

    (@pressnoob)

    Hey Max, I don’t quite understand your code. I don’t know php at all, or any of the functions or objects that WordPress uses.

    This is what I tried:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
     <div id="container">
       <?php the_content(); ?>
     </div>
    
      <?php endwhile; else: ?>
    
     <p>Sorry, no posts matched your criteria.</p>
    
     <!-- REALLY stop The Loop. -->
     <?php endif; ?>

    I was able to paste directly but it ruins my entire style for some reason. I replaced the div class with a styled div called “container”. I don’t really understand how WP returns the content to the div “container” but I believe that’s what it does? Returns the strings and puts it into ‘the_content’ variable?

    If that’s the case my HTML should be working perfectly but it’s not. The layout breaks. I’m doing something wrong.

    Thread Starter Pressnoob

    (@pressnoob)

    Whoooops. My bad! Thank you for pointing that out ^_^; I will try your suggestion while I munch on some chicken.

    Thread Starter Pressnoob

    (@pressnoob)

    What do you mean by commercial framework? I just converted my html/css into a wordpress theme.

    It’s all just php anyways, there must be a way to work around this easily? I’m in the process of learning programming but PHP is so far away -_-;;

Viewing 6 replies - 16 through 21 (of 21 total)