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 1230 posted 14 years ago by hasssan
WP Functions
0 1782 posted 14 years ago by silentpro
0 1378 posted 14 years ago by tcelestino
Quick fix to tweak output for WordPress wp_list_pages()
0 1487 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 1668 posted 14 years ago by paulgrenwood
0 2575 posted 14 years ago by errkk
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0 1464 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 1461 posted 14 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0 2614 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 1319 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 1485 posted 14 years ago by wahnbriefe
0 1258 posted 14 years ago by sridhar
Or remove the whole line for no link at all!
0 1618 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 1277 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 1488 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 1509 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 2640 posted 14 years ago by zartgesotten
Refer to the following: http://codex.wordpress.org/Class_Reference/wpdb
0 3464 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 1689 posted 14 years ago by redconservatory
Function to import array of php data to pod table
0 1719 posted 14 years ago by stewartduffy
n nextgen-gallery/view/gallery.php, find these lines. Either comment out or remove.
0 1437 posted 14 years ago by xcsteve99
1 ... 11 12 13 14 15 ... 42