Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 11 12 13 14 15 ... 42
if don't like `@import` in stylesheet
0 844 posted 14 years ago by hasssan
WP Functions
0 1171 posted 14 years ago by silentpro
0 959 posted 14 years ago by tcelestino
Quick fix to tweak output for WordPress wp_list_pages()
0 1061 posted 14 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 1162 posted 14 years ago by paulgrenwood
0 1290 posted 14 years ago by errkk
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0 1007 posted 14 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 1066 posted 14 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0 1320 posted 14 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 910 posted 14 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 1059 posted 14 years ago by wahnbriefe
0 864 posted 14 years ago by sridhar
Or remove the whole line for no link at all!
0 1122 posted 14 years ago by xcsteve99
Rol editor con permisos para crear usuarios no pueda tocar al administrador: 1. Solo los roles "Administrator" pueden editar datos de usuarios con rol "Administrator" 2. Cualquier otro perfil con el permiso "edit_users" no puede asignar el rol...
0 884 posted 14 years ago by davidlluna
Add the following to your active theme's functions.php file then upload an image named "avatar.jpg" to your active theme's image folder. The image can be named anything you would like but be sure to change it in the code below as well. The last st...
0 1027 posted 14 years ago by xcsteve99
Con esto añadirmos un mensaje de alerta en el backend de Wordpress como los de actualizaciones y demás del propio CMS. El código se añade en el archivo function.php del theme.
0 1031 posted 14 years ago by skozz
This was for a customer. Basically it does this: If a page has no children, it shows ... nothing, if a page has a parent, it shows all other children of this parent (siblings) and the current page if a page has a parent AND children (3rd level)...
0 1320 posted 14 years ago by zartgesotten
Refer to the following: http://codex.wordpress.org/Class_Reference/wpdb
0 2057 posted 14 years ago by redconservatory
A great plugin for Wordpress: http://podscms.org Currently does not play well with plugins that use custom fields but this will change in version 2. For more information, refer to: http://mondaybynoon.com/2010/01/04/introduction-to-pods-cms-w...
0 1169 posted 14 years ago by redconservatory
Function to import array of php data to pod table
0 1148 posted 14 years ago by stewartduffy
n nextgen-gallery/view/gallery.php, find these lines. Either comment out or remove.
0 1021 posted 14 years ago by xcsteve99
1 ... 11 12 13 14 15 ... 42