Link class doesn't work?
-
I’ve made a custom design for wordpress posts, and everything works except the last part where I have a “block” that’s showing the category the post was published in.
<div class="post"> <h4><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h4> <span class="postinfo">Publisert <?php the_date(); ?></span> <div class="utdrag"> <?php the_excerpt(); ?> </div> <a href="#" class="block"><?php the_category( $id ); ?></a> </div>
I’ve had this problem before, that the class won’t work together with a wordpress php code. What should I do?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Link class doesn't work?’ is closed to new replies.