Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 12 13 14 15 16 ... 47
Add this to the functions.php file. Make sure the Admin Bar is set to show when viewing site. You will see in the Admin Bar the current page template that is being used.
0 902 posted 13 years ago by jeremyjared74
0 506 posted 13 years ago by imaginarydesign
Add code to theme functions.php file.
0 1189 posted 13 years ago by Huskie
Usage: <?php>post_excerpt; if($textin == ""){ $textin = $post->post_content; } echo TruncateText($textin, 150); ?>
0 749 posted 13 years ago by tcelestino
Useful snippet for getting a specific number of posts from a specific category, useful for news listing in sidebar
0 820 posted 13 years ago by i-am-andy
declare all custom fields first
0 722 posted 13 years ago by mesh606
0 862 posted 13 years ago by silentpro
Instead of requiring the loop.php file in your custom themes you can use there two functions, placed in your functions.php file to not only automatically include it, but make a dead simple to filter sections out on a page by page basis negating the n...
0 849 posted 13 years ago by FatFolderDesigner
if don't like `@import` in stylesheet
0 684 posted 13 years ago by hasssan
WP Functions
0 979 posted 13 years ago by silentpro
0 759 posted 13 years ago by tcelestino
Quick fix to tweak output for WordPress wp_list_pages()
0 880 posted 13 years ago by digitalclubb
WordPress allows you to embed videos so easily using oEmbed. You can easily add videos to your post just pasting their URL to your post. WordPress handles all the object and embed HTML for you. But this code is missing wmode parameter which is necess...
0 942 posted 13 years ago by paulgrenwood
0 927 posted 13 years ago by errkk
Useful for WordPress installations that need more than 32M of memory
0 1118 posted 13 years ago by Huskie
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0 830 posted 13 years ago by jamiebrwr
In case you need to create your own listing of the last # of trailing months of Archived Wordpress Articles. This one is being used to pull the info onto a Magento page.
0 912 posted 13 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0 960 posted 13 years ago by cpres
There are a few modifications to make to your WP files to share a single database between multiple installs on separate domains.
0 755 posted 13 years ago by lancemonotone
Good for showing labels/descriptions that accompany custom fields when they are set, and avoiding lots of empty labels. Eg: if there is no content set in the 'project-agency' field, don't show the label 'Agency:', but if there is, show it with the...
0 908 posted 13 years ago by wahnbriefe
1 ... 12 13 14 15 16 ... 47