How to Pull Content from Specific Category
This is a humble request for help, as I am stumped with this WordPress setup.
The above is a testing site. I need to add additional categories but cannot seem to fathom precisely the proper code for a specific section on each page. An rtfm has been unsuccessful. I tried using query, also without success.
For example, if I wish to display the title and then the content from a post from 'events', which is ID=4, in the code below:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><center><?php the_title(); ?></center></h2>
<!-- Display the Post's Content in a div box. -->
<?php the_content(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
what is the proper code?