WordPress Post HTML after Posting

add_action(‘publish_post’, ’email_post’); function email_post($postID) { $post = get_post($postID); $content = $post->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); $mailto = ‘youremail’; $subject=”New Post”; if(mail($mailto, $subject, $content)) return true; else return false; } Be sure to set your headers or anything else you might need to populate your email correctly. This is untested, but … Read more

hardcoded wp pages/plugins problems

A number of plugins inject some code into wp_head() therefore you need to ensure this is included in header.php. Check, if its not included, add it just before the closing </head> like so: … … <?php wp_head(); ?> </head> Hope that helps.

Sociable buttons displaying seemingly at random [closed]

If you dig down into the HTML, you’ll see that the buttons are there but the background images that make the buttons are not. That’s because they’re looking for their background sprite image in the following location: /dev/wp-content/plugins/sociable/images/sprites/option1_16.png I’m assuming, therefore, that you either just moved the site from a /dev/ folder or are storing … Read more

Change the Simple Facebook Connect popup position

Thanks to SO: https://stackoverflow.com/questions/10471848/css-z-index-overflow-facebook-xfbml-and-safari Turns out I needed positions and z-indexes, but also this on the containing <div>, which uses a “clearfix” trick (instead of using overflow:hidden) to make #main wrap its floated children: Original: #main { clear: both; padding: 5px 0 0 0; position: relative; z-index:1; overflow:hidden /*removed */ } Added: #main:after { content: … Read more