katcraig
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving post description to the right side of imageYes 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.
Forum: Fixing WordPress
In reply to: Twenty Eleven Questions – padding & and header background colorI 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?
Forum: Fixing WordPress
In reply to: Page Template Question – New Template with no Title?@awakened-web-design No I haven`t…still trying to figure it out.
Forum: Fixing WordPress
In reply to: Page Template Question – New Template with no Title?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.
Forum: Fixing WordPress
In reply to: Page Template Question – New Template with no Title?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.