• i want my post with a 1px line just above. i managed to have it with CSS but what i want now is : have 2 posts with the same date and only one 1px line above the first post.
    i don’t want 2 lines above the 2 posts.
    can you help ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You probably have applied a CSS style to the wrong element/style.

    Can you provide a link for us to look at? Or post your CSS code for the line and the html code for your posts at http://wp.pastebin.com/ and post a link back here?

    do you have link to your site, illustrating your issue?

    Thread Starter Tombakadikt

    (@tombakadikt)

    here is the blog : http://denis.site40.net/

    and my index.php below

    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    				<div class="col">
    				<!--<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> -->
    				<h2>><?php the_date(__('l, j F', 'kubrick')) ?> <!-- by <?php the_author() ?> --></h2>
    				<div class="entry">
    					<?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    				</div>
    				</div>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
    			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
    		<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p>
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>

    Delete your <h2> line you added (which had an extra > anyway) and paste this in its place:
    <?php the_date('l, F j, Y', '<hr />', '<br />'); ?>
    It will insert the date with an <hr /> before and a
    after. I found the solution the other day in the Codex.

    there was supposed to be a
    <br />
    before the word ‘after’, it got interpreted literally by the post.

    Thread Starter Tombakadikt

    (@tombakadikt)

    interesting bconstant, thank you for the code. i were wondering the other day about the syntax for the before & after.

    it’s cool i tried your code but my problem is not fixed
    your solution will insert before & after elements in every post and it is not what i want.
    i still have a border line for the second post
    and also in my red sticky post

    i suppose the solution is something dealing with “if”
    no ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘custom post, title & date’ is closed to new replies.