Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter katcraig

    (@katcraig)

    Yes I posted there first but they said I should hire someone and I would rather learn how to do this on my own. It’s with all of the portfolio posts on my site, instead of having the description below the image, I’d like it to be on the right of it.

    Thread Starter katcraig

    (@katcraig)

    I saw that my post was moderated, to post a link, but I don`t have it up yet.. is there anyone that can help me out?

    Thread Starter katcraig

    (@katcraig)

    @awakened-web-design No I haven`t…still trying to figure it out.

    Thread Starter katcraig

    (@katcraig)

    Ok I adjusted the loop to say this:

    <?php if ( is_page_template (‘brandedPage.php’)) { ?>

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>

    <?php if ( is_front_page() ) { ?>
    <h2 class=”entry-title”><?php the_title(); ?></h2>
    <?php } else { ?>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <?php } ?>

    <div class=”entry-content”>
    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘twentyten’ ), ‘after’ => ‘</div>’ ) ); ?>
    <?php edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </div><!– .entry-content –>
    </div><!– #post-## –>

    <?php comments_template( ”, true ); ?>

    <?php endwhile; // end of the loop. ?>

    <?php } ?>`

    And the body is completely blank, no title, no body text.

    When I changed the loop to look like this:

    <?php if ( is_page_template ('brandedPage.php')) { ?>
    
    	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    					<div class="entry-content">
    						<?php the_content(); ?>
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 			'after' => '</div>' ) ); ?>
    						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-content -->
    				</div><!-- #post-## -->
    
    				<?php comments_template( '', true ); ?>
    
    	<?php endwhile; // end of the loop. ?>
    
    <?php } ?>

    It worked, but when I selected the default template for another page it was completely blank.

    I`m sorry for all of the questions.

    Thread Starter katcraig

    (@katcraig)

    Thanks for the link but I`m still kind of stuck.

    I put this before the loop:

    <?php if ( !is_page_template('brandedPage.php') ) { ?>
    	<?php if ( is_front_page() ) { ?>
    		<h2 class="entry-title"><?php the_title(); ?></h2>
    	<?php } else { ?>
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	<?php } ?>

    and EVERYTHING disappears, including the body text.

    If I do this:

    <?php if ( is_page_template('brandedPage.php') ) { ?>
    	<?php if ( is_front_page() ) { ?>
    		<h2 class="entry-title"><?php the_title(); ?></h2>
    	<?php } else { ?>
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	<?php } ?>

    The title appears twice.

Viewing 5 replies - 1 through 5 (of 5 total)