Class for the_content
-
Hello,
I’ve started making my own theme for my website, but now I ran into a problem. Everything worked out fine except for the the_content(”) part. Somehow the class it’s supposed to have doesn’t apply to it, here’s my code:
<?php get_header(); ?> <div class="clear"></div> <div id="content-left"> <h1>Professional Design</h1> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <img src="wp-content/themes/robindebije/images/temp-thumb.gif" width="189" class="news-img" /> <div class="news-container-right" id="post-<?php the_ID(); ?>"> <p class="news-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <p class="author"><?php the_author() ?></p> <p class="date"><?php the_time('F jS, Y') ?></p> <p class="news-content"> <?php the_content(''); ?> </p> <p class="view-full-article"><a href="<?php the_permalink() ?>">View full article</a></p> <p class="view-comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> </div> <div class="clear"></div> <?php endwhile; ?> <p class="older-or-newer"><?php next_posts_link('« Older Entries') ?></p> <p class="older-or-newer"><?php previous_posts_link('Newer Entries »') ?></p> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>This is the part it’s all about
<p class="news-content"> <?php the_content(''); ?> </p>When I view my site the content doesn’t seem to use any CSS of the news-content class, which it should.
Hope you can help me, first time I make a theme 🙂
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Class for the_content’ is closed to new replies.