Notice: Undefined property: wpdb::$current_post What can be wrong?

There are problems with this part: ++$GLOBALS[‘wpdb’]->current_post There’s no current_post property of the wpdb class, here you’re most likely confusing the wpdb class with the WP_Query class. Also we wouldn’t want in general to modify the current_post property of the global WP_Query, it could surely “bite us” if we mess with the globals 😉 Note … Read more

WordPress is converting & to & inbetween [code] brackets

I tracked this solution down from the WordPress Trac ticket found here: http://core.trac.wordpress.org/ticket/6969 The solutions seems to be to add this to your functions.php file: <?php function foobar_run_shortcode( $content ) { global $shortcode_tags; // Backup current registered shortcodes and clear them all out $orig_shortcode_tags = $shortcode_tags; remove_all_shortcodes(); add_shortcode( ‘foobar’, ‘shortcode_foobar’ ); // Do the shortcode … Read more

Including Angle Brackets In Pre Sections

If you’re just trying to display them in a page or a post, you could try using their character entities. In the Text view in the editor, type &lt; instead of < and &gt; instead of >. So, for instance, in your editor’s Text view (not the Visual mode), you’d type: <pre> private HashMap&lt;String, HashMap&lt;String, … Read more