Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 21 22 23 24 25 ... 47
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 759 posted 13 years ago by chrs
Add this piece of code in your .htaccess file located in wordpress root directory
0 742 posted 13 years ago by kirichev
0 767 posted 13 years ago by roflman79
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 841 posted 13 years ago by kirichev
Put this in your functions.php
0 938 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
0 757 posted 13 years ago by janvdm
0 979 posted 13 years ago by telltec
0 752 posted 13 years ago by zac
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 676 posted 13 years ago by theriddlebrothers
Snippet from http://www.luscarpa.com/
0 976 posted 13 years ago by theriddlebrothers
0 500 posted 13 years ago by PubliOne
2 735 posted 13 years ago by janvdm
2 656 posted 13 years ago by janvdm
This SQL takes the redirects from Drupal 5.5 tables and converts them into a format the WordPress plugin Redirection can understand.
0 683 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
display page list for selected pages : remove "Page" word
0 592 posted 13 years ago by aashvi
create link for page
0 618 posted 13 years ago by aashvi
How to create home page url
0 737 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
Add a list of recent comments from the wordpress database
1 545 posted 13 years ago by zac
Example of loading thickbox and syntaxhighlighter conditionally from the functions.php of a wordpress theme.
2 617 posted 13 years ago by zac
Add this to your theme's functions.php file
0 714 posted 13 years ago by amyb
1 649 posted 13 years ago by rccc
1 ... 21 22 23 24 25 ... 47