I'm working in wordpress using a theme that has a custom function to build a calendar page. This allows me to create a page with introductory text followed by events listings underneath.
The listings allow the user to view the 'Prev' or 'Next' months events, but doing so causes the introductory text to disappear although the URL doesn't change.
I've found the function in the theme files and tried editing it as below:
if($action_identifier == 'get_cal'){
$monthdata = explode('/', $thedata);
$month = $monthdata[0];
$year = $monthdata[1];
$content = '<div id="post" class="page">';
$content .='<div class="introduction">'; /* these */
$content .= the_content(); /* lines */
$content .='</div>'; /* added */
$content .= '<div class="calmonth clear darkbox">';
$content .= prevlink($month , $year);
$content .= '</div>';
$content .= '</div><div class="calentries">';
$content .= get_the_calendar($month,$year) . '</div>';
$output = $content;
}
What I'm attempting here is to create the 'introduction' div and then use the wordpress function 'get_content' to display the page content in the div.
This semi works in that it places the 'introduction' div where I want it, but doesn't display the content (it will display text when I type something in instead of 'the_content()' ). I think this is likely a syntax issue, because I'm an utter novice - can anyone give me any suggestions?
Thanks in advance.