Use field description for a link
-
Hello everybody.
I am beginner in wordpress, learning to create new themes. I want to build a row with 3 features blocks. I am using 3 pages for it. I would like to use the field description to insert the url, but in code always appear the url with p tag.
Is there anyway, function or tip to clean the p tag in code? This is my code:
< a>" title="<?php the_title(); ?>"> <div class="small-12 medium-4 columns top-banner top-banner-<?php echo $contador ?>"> <?php the_post_thumbnail(); ?> <h3><?php the_title(); ?></h3> </div> < /a>
The function “the_content()” always bring the text inside a p tag and it build the url with p tag too.
Thanks for help me, and sorry my bad english ??
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Use field description for a link’ is closed to new replies.