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 1761 posted 14 years ago by jeremyjared74
0 1075 posted 14 years ago by imaginarydesign
Add code to theme functions.php file.
0 2168 posted 14 years ago by Huskie
Usage: <?php>post_excerpt; if($textin == ""){ $textin = $post->post_content; } echo TruncateText($textin, 150); ?>
0 1554 posted 14 years ago by tcelestino
Useful snippet for getting a specific number of posts from a specific category, useful for news listing in sidebar
0 1705 posted 15 years ago by i-am-andy
declare all custom fields first
0 1576 posted 15 years ago by mesh606
0 1793 posted 15 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 1785 posted 15 years ago by FatFolderDesigner
if don't like `@import` in stylesheet
0 1448 posted 15 years ago by hasssan
WP Functions
0 2057 posted 15 years ago by silentpro
0 1556 posted 15 years ago by tcelestino
Quick fix to tweak output for WordPress wp_list_pages()
0 1715 posted 15 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 1933 posted 15 years ago by paulgrenwood
0 2812 posted 15 years ago by errkk
Useful for WordPress installations that need more than 32M of memory
0 2106 posted 15 years ago by Huskie
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0 1693 posted 15 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 1707 posted 15 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0 2833 posted 15 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 1517 posted 15 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 1672 posted 15 years ago by wahnbriefe
1 ... 12 13 14 15 16 ... 47