New answers tagged code
First of all you should use the standard pre and code elements instead of blockquotes. But if have too many to change them, there might be a workaround. If you only use blockquotes for code, then you can use a bit of jQuery to convert those to pre tags, but make sure to do that before Prettify is loaded. I don't know how the plugins work, but I can help ...
Since you are self hosting the blog, you will need to: Install the SyntaxHighlighter Evolved plugin. Make sure that you enable the plugin on your blog (this is not done automatically after install). You should now be able to add the code to a post or page via either the visual or text editor. [code language="css"] your code here [/code]
get_the_terms( $id, $taxonomy ); is what you're looking for, I guess. You can pass array as $taxonomy param. So this snippet: $posttags = get_the_terms($post->ID, array('category', 'post_tag')); should do exactly what you're trying to achieve.
Top 50 recent answers are included