Simple php question
-
Hi, i’m not very experienced with php yet, and i’m trying to merge two php codes into each other, but I’m running out of luck.
I have the following code:
<?php if ( $format == 'gallery' ) echo ' <div id=spotlightg> Contributer Spotlight </div> <div id=gcontent> Info </div> <br /><br /><br />'; else echo ''; ?>
And where is says info (between two divs), I want to add this code
<header class="entry-header"> <?php do_action( 'gpp_before_title' ); ?> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'gpp' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php do_action( 'gpp_after_title' ); ?> </header>
This code contains html and php, so it can’t all be in an echo, due to the php part. I just need this to be between those two divs. How do i manage to do this?
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Simple php question’ is closed to new replies.