Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • The technique you’ll want to use is very similar to what I explained in this recent thread.

    That is: you’ll want to wrap all your posts in a given class, and then style that class to float your posts to the left (with a width wide enough to fit three).

    I don’t have the time to muster all the details of the code for you, but I can try to answer any questions you might have.

    I’m pretty sure your problem is the clear: both; which is applied to .med-headline. Remove that line (or perhaps just change it to clear: left;) and it should work fine.

    I’m not sure what you’re asking, but as far as I know you can’t execute PHP in widgets by default. From what I understand, that’s the problem you’re having.

    I know there are Plugins that will let you execute PHP in widgets. Samsarin PHP Widget is the first one I found, but then I’m sure there are many more that do a similar thing.

    You could — maybe should — make the image smaller. It’s bigger than an average browser window.

    That said, to do what you seem to be asking (having the image wider than the white #page column), you’ll need to take it outside of that div. That meants changing these lines in your header.php file:

    <div id="page">
    
    <div id="header">
    	<div id="headerimg">
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    </div>

    To:

    <div id="header">
    	<div id="headerimg">
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    </div>
    
    <div id="page">

    Then you’ll just need to restyle the #header part of your style.css file to center, etc. to make it look right.

    I’ve not tried this, but I think it should do what you’re trying to. Best of luck.

    If you’re willing enclose the whole thing in the link, you could just change:
    <?php comments_number('no comments', 'one comment', '% comments');?>
    to:
    <?php comments_number('There are no comments on this post.', 'There is one comment on this post.', 'There are % comments on this post.');?>

    Assuming you thought of that and found it inadequate, how about get_comments_number? It’s not documented in the Codex, but the code of the comments_number function (which can be found here) calls it and it seems to be returning an integer.

    There can be much more specific CSS and PHP involved in doing that than I care to expand here. Basically, assuming you just want code from a single normal loop, I’d start by add a class called indexpost to the default theme’s style.css:

    .indexpost {
      display: block;
      float: left;
      width: 200px;
      height: 500px;
    }

    Then in the theme index.php file, replace this:

    <div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    			</div>

    With this:

    <div class="indexpost" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_excerpt(); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    			</div>

    This probably won’t look very good, but it’ll get you started.

    What it does is basically change the way that posts are styled on your index (home) page. It makes the elements into free-floating boxes (blocks) with a specified width and height and then tells them to try to float to the left. What that does is gives you two boxes per line (that’s all that will fit), and then gives you two more in one line, etc. The change from the_content to the_excerpt is a modest attempt to keep the text from overflowing the specified height of the boxes.

    Hope all that helps.

    Yes. WordPress is fully open source, both the code and the vast majority of themes are released under the GPL. If you’re wondering where to start, I’d recommend using the Codex and a theme–perhaps the default–to try to get a handle on all the WordPress specific functions that are used by themes and plugins.

    If that hasn’t answered your question, I’d recommend you Google precisely what you’re looking for. WordPress has a large and dynamic community which means tutorials and advice for beginner are easy to find.

    Best of luck.

    I’m not sure I understand. Is this image a mock up? Are you trying to get the styling of the left sidebar where the right one is? The order of the elements in the sidebar?

    If it’s just the order of the elements, you could use Dashboard Widgets to do it. If it’s the styling, edit the theme’s style.css file. If it’s the actual code of the sidebar, you’ll want to change sidebar.php.

    I’m not sure if any of that’s what you’re looking for, but I hope it helps.

    Having looked at Prologue, I now think I actually understand that your question refers to Recent Projects list in the sidebar. I should have looked at the theme before I said anything.

    What you’ll need to edit is the prologue_recent_projects function in the theme’s functions.php file. I don’t know nearly enough about arrays to be able to fix it, but that’s pretty surely where you need to look.

    It would help to know where in the theme the tags you want to sort are. I’ve not looked at Prologue, but tag clouds (wp_tag_cloud) and post tags (the_tags) are automatically alphabetized.

    I’m not familiar with WordPress 2.0.7, but it sounds like you’ve got some unclosed divs or style elements.

    The going into italics, for example, could be caused simply by a post that doesn’t has an <em> or <i>, without the necessary </em> or </i> later in the post. I’m pretty sure current versions of WordPress try to safeguard against this problem, but I can’t speak for the one you’re using.

    The sidebar’s not at the top because your other elements are far too wide. Most of them are growing to be nearly the full 960 width because you’ve not contained them in a div with a declared width narrow enough. Because they’re so wide, your floated sidebar doesn’t have room to drift up to where you want it.

    It shouldn’t be too hard to fix. Just enclose all the stuff you want on the left in a div with a width narrow enough to make the sidebar fit.

    As to the pages, what go1dfinger says seems right to me. Be sure your whole list in enclosed by the <ul class="horizontal">(EVERTHING)</ul> — it doesn’t look like it is — and be sure to have at least the styling that go1dfinger gave.

    I’m not 100% sure of what you’re trying to do, but it seems like you could do this with the $do_not_duplicate technique offered in this explanation of The Loop.

    You’d essentially modify the original loop on single.php to include $do_not_duplicate = post->ID; and then make your next loop excludes $do_not_duplicate. I don’t feel like writing out and testing the thing, but it seems like it would do what you want.

    It’s likely that you removed a div from one of your PHP files (like sidebar.php).

    There’s no “reset this theme” capability built into WordPress, but if you can get a new copy of the theme, you could compare those PHP files with the one you see under Design>Theme Editor. Then you’ll see what’s causing the problem.

    Even easier would just be to re-upload the theme over top of the one you edited wrong. That would get rid of all the changes you made (good or bad), but it’d look and work like new.

    I haven’t looked at it very closely, but where did your endforeachs come from? I don’t see why they’d be there.

Viewing 15 replies - 1 through 15 (of 24 total)