I'm creating a theme using wordpress, but i'm a little confused how php the_content(); works.
In the example below, the function retrieves all the content for a single post. This is wrapped in a div 'entry-content'. This allows me to style the content
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
But what if I have a number of divs WITHIN the_content, for example some images may have a div id="image-small" others may have a div "image-large"
Does this mean that I have to copy and paste all my HTML markup into wordpress back end using the 'text' tab. This way, all my markup including divs will be stored in the DB and retrieved and injected into the page using the the_content() function
This seems like a very poor way of making the template work.
1) Your storing messy markup in the DB
2) Users can edit the markup and break the template via (the text tab)
Is there a better solution, have I misunderstood how WP works? Do people store markup in the BD via the back end (wordpress ui)
Many thanks