Can’t give tags rels

function extend_tinymce( $values ) { $elements=”pre[id|class|title|rel]”; if ( isset( $values[‘extended_valid_elements’] ) ) { $values[‘extended_valid_elements’] .= ‘,’ . $elements; } else { $values[‘extended_valid_elements’] = $elements; } return $values; } add_filter(‘tiny_mce_before_init’, ‘extend_tinymce’); The above snippet is what I use for example, of course you can extend this beyond id, class, title, rel, to things such as height, … Read more

Posts showing […] in it

If you place the following in your functions.php it will remove it. Hope it helps! add_filter( ‘excerpt_more’, ‘my_remove_excerpt_more’ ); function my_remove_excerpt_more() { return ”; }

where to download bb-ratings plugin for wordpress?

Here’s the current version’s files stored in the bbpress svn repository: http://plugins-svn.bbpress.org/bb-ratings/tags/0.8.5/ I haven’t tried this, but I imagine you could also download the 2nd most recent and then try upgrading.

How to only publish posts with image in it

I found and modified a chunk of code found here: http://www.wprecipes.com/wordpress-tip-detect-if-a-post-has-at-least-one-image. <?php while ( have_posts() ) : the_post(); $content = $post->post_content; $searchimages=”~<img [^>]* />~”; preg_match_all( $searchimages, $content, $pics ); $iNumberOfPics = count($pics[0]); if ( $iNumberOfPics > 0 ) { //your loop content goes here } endwhile; ?> I think this just looks for images entered … Read more

WP text styles not coming through to actual post

Most likely, your theme uses some form of CSS reset. Your markup (“b”, “i”, etc) is probably being saved and rendered correctly, but the CSS reset overrides all of the styles that the browser would normally apply. Try viewing the source of your page, and see if the markup (“b” tags, “i” tags, etc) actually … Read more