Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If a post is published without setting a featured image and there is an image attachment, this will select an image from the media library and set it as the featured image.
0
761
posted 13 years ago by chrs
Add this piece of code in your .htaccess file located in wordpress root directory
0
743
posted 13 years ago by kirichev
Put this code in your theme, where you want to show followers count. Don't forget to change USERNAME.xml to your twitter user name.
0
843
posted 13 years ago by kirichev
Most of this code is by:
http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog
I simply added the Tag Cloud
0
785
posted 13 years ago by daif
Embed a video via PHP without using `the_content` filter in WordPress. From luckykind at http://wordpress.org/support/topic/call-function-called-by-embed-shortcode-direct
0
679
posted 13 years ago by jevets
If a MySQL DB for WordPress is encoded as latin1, these steps will prevent utf8 encoding issues.
0
867
posted 13 years ago by theriddlebrothers
If you run a query to delete old posts manually from MySQL in a WordPress database, the old tags will remain and appear in your tag cloud/listing. This allows you to identify those unused tags, and then delete them with an additional query.
0
677
posted 13 years ago by theriddlebrothers
This SQL takes the redirects from Drupal 5.5 tables and converts them into a format the WordPress plugin Redirection can understand.
0
685
posted 13 years ago by ethicka
Wordpress: home page condition , we can identify it any inner pahe (header / footer etc.)
1
608
posted 13 years ago by aashvi
replaced taxonomy = 'category' with taxonomy = '".myTAXONOMY."'
add lines 51, 52, 93 - 123
0
1473
posted 13 years ago by Ijaas
Example of loading thickbox and syntaxhighlighter conditionally from the functions.php of a wordpress theme.
2
617
posted 13 years ago by zac