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 853 posted 13 years ago by jeremyjared74
0 463 posted 13 years ago by imaginarydesign
Add code to theme functions.php file.
0 1129 posted 13 years ago by Huskie
Usage: <?php>post_excerpt; if($textin == ""){ $textin = $post->post_content; } echo TruncateText($textin, 150); ?>
0 694 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 776 posted 13 years ago by i-am-andy
declare all custom fields first
0 674 posted 13 years ago by mesh606
0 822 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 781 posted 13 years ago by FatFolderDesigner
if don't like `@import` in stylesheet
0 641 posted 13 years ago by hasssan
WP Functions
0 930 posted 13 years ago by silentpro
0 709 posted 13 years ago by tcelestino
Quick fix to tweak output for WordPress wp_list_pages()
0 829 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 897 posted 13 years ago by paulgrenwood
0 865 posted 13 years ago by errkk
Useful for WordPress installations that need more than 32M of memory
0 1057 posted 13 years ago by Huskie
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0 781 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 854 posted 13 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0 901 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 689 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 858 posted 13 years ago by wahnbriefe
1 ... 12 13 14 15 16 ... 47