• Ok, I’m hoping someone out there can help me with this one because I’ve been looking for days and can’t seem to find a solution.

    What I’m trying to do is create an entry layout where the image is on the left and the entry text is set to the right of the image including the Title of the post. I can get the entry text to wrap just fine using the ‘align=”left”‘ command within the image html but the title remains on top. I want the title to be flush-left with the entry text and top aligned to the image that’s to the right of it.

    At first I thought it might be a CSS thing, but I’m starting to wonder if its a PHP thing but I honestly just don’t know. Can anyone lend a hand?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is a theme specific question … a link to your site and your active theme would be useful for someone to make suggestions from.

    Thread Starter 00one

    (@00one)

    I thought someone would say that. The problem is I’m working on the layout offline so I can really give a link.

    I can, however, give you the link to the current live blog. What I’m working on offline isn’t that much different layout-wise, just not the layout I want.

    LINK: http://fileunder.00one.com
    THEME: K2

    I was just now messing the theme’s loop php file and I managed to get the title to move to different spots within the post but unfortunately not the actual place I want. I tried every think I could think of. Maybe someone could figure it out for me.

    Here’s the php code

    <?php
    /**
     * Default Loop Template
     *
     * This file is loaded by multiple files and used for generating the loop
     *
     * @package K2
     * @subpackage Templates
     */
    
    // Post index for semantic classes
    $post_index = 1;
    
    while ( have_posts() ): the_post(); ?>
    
    	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<div class="entry-head">
    			<h3 class="entry-title">
    				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php k2_permalink_title(); ?>"><?php the_title(); ?></a>
    			</h3>
    
    			<?php /* Edit Link */ edit_post_link( __('Edit','k2_domain'), '<span class="entry-edit">', '</span>' ); ?>
    
    			<?php if ( 'post' == $post->post_type ): ?>
    			<div class="entry-meta">
    				<?php k2_entry_meta(1); ?>
    			</div> <!-- .entry-meta -->
    			<?php endif; ?>
    
    			<?php /* K2 Hook */ do_action('template_entry_head'); ?>
    		</div><!-- .entry-head -->
    
    		<div class="entry-content">
    			<?php if ( function_exists('has_post_thumbnail') and has_post_thumbnail() ): ?>
    				<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array( 75, 75 ), array( 'class' => 'alignleft' ) ); ?></a>
    			<?php endif; ?>
    			<?php the_content( sprintf( __('Continue reading \'%s\'', 'k2_domain'), the_title('', '', false) ) ); ?>
    		</div><!-- .entry-content -->
    
    		<div class="entry-foot">
    			<?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:','k2_domain') . '</span>', 'after' => '</div>' ) ); ?>
    
    			<?php if ( 'post' == $post->post_type ): ?>
    			<div class="entry-meta">
    				<?php k2_entry_meta(2); ?>
    			</div><!-- .entry-meta -->
    			<?php endif; ?>
    
    			<?php /* K2 Hook */ do_action('template_entry_foot'); ?>
    		</div><!-- .entry-foot -->
    	</div><!-- #post-ID -->
    
    <?php endwhile; /* End The Loop */ ?>
    Thread Starter 00one

    (@00one)

    P.S. Here’s a link to a screenshot of what I want to do. Thanks in advance to anyone that can help!

    http://00one.com/fileunder.jpg

    It looks to me if you create a two-column layout for your posts with entry-content on the left and entry-head on the right you will be set.

    The post_class() function should create a wrapping class for you to use with the other classes to specify the columns of your new layout.

    An interesting concept, good luck with it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Including Title of Entry in a Text Wrap’ is closed to new replies.