I use EventCalendar3 and which displays 3 upcoming events in my sidebar. For every event I need about 60 characters of the posts’ text.
<?php substr($myexcerpt, 0, 60); ?>
So I want only the text from a post, otherwise it might cause it display HTML-code in the sidebar.
query_posts is an option, but how do I get WordPress to filter it?
$this_post_id = the_ID();
in the code snippet above should be:
$this_post_id = get_the_ID();