Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
plugins reside in the plugins folder
wp-content/plugins
The following code must go at the top of your plugin file
0
963
posted 14 years ago by redconservatory
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
n nextgen-gallery/view/gallery.php, find these lines. Either comment out or remove.
0
1021
posted 14 years ago by xcsteve99
Cut-and-paste the following into your functions.php file (inside of your theme folder).
Change the Name-goes-here to whatever you want.
0
1205
posted 14 years ago by redconservatory
Pulls in 'main-navigation' and 'social-navigation' menus into a single UL. the key is items_wrap => %3$s
0
1223
posted 14 years ago by dan_hoerr
Ensures the admin scripts or styles will load only on your wordpress plugin settings page:
- add_options_page returns a hook_suffix for the settings page of your plugin.
- append this value prefixed with a dash (-) to the end of the action you ar...
0
1100
posted 14 years ago by relish
Use in the WP loop.
User's registered email account on WP must also be assigned to Gravatar.
0
1009
posted 14 years ago by jacksaidwhat
<?php>
<!–Default>
<?php>
Note that sidebar.php must not always content the sidebar
0
879
posted 14 years ago by xavsio4