Inserting Page Content into HTML Tag
-
Hey, I’m trying to insert the
<?php the_content(); ?>
into a<p>
tag with a class of ‘intro’. Just wondering how to do this? I was able to do it easily with<h2><?php the_title(); ?></h2>
but there was no special class name so…Also, i’m trying to use list pages to make a little list in the footer of my nav, because i’m thinking i’m gonna hard code the nav list in the header template. I’ve basically got it working but am wondering how I can insert a little html entity before the links like in the home part…
<ul> <li>› <a href="<?php bloginfo('url'); ?>">Home</a></li> <?php wp_list_pages('title_li='); ?> </ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Inserting Page Content into HTML Tag’ is closed to new replies.