Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
828
posted 13 years ago by paulgrenwood
Allows you to change the name of the "Posts" module within the admin section of WordPress.
0
723
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
792
posted 13 years ago by cpres
add this to functions.php and you won't have to mess with the index page.
0
852
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
628
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
806
posted 13 years ago by wahnbriefe
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
666
posted 13 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
755
posted 13 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
731
posted 13 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
826
posted 13 years ago by zartgesotten
Refer to the following:
http://codex.wordpress.org/Class_Reference/wpdb
0
1445
posted 13 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
854
posted 13 years ago by redconservatory
n nextgen-gallery/view/gallery.php, find these lines. Either comment out or remove.
0
734
posted 13 years ago by xcsteve99