Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 13 14 15 16 17 ... 47
0 608 posted 13 years ago by sridhar
plugins reside in the plugins folder wp-content/plugins The following code must go at the top of your plugin file
0 669 posted 13 years ago by redconservatory
run these in the SQL tab
0 774 posted 13 years ago by xcsteve99
Or remove the whole line for no link at all!
0 797 posted 13 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 675 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 764 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 738 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 839 posted 13 years ago by zartgesotten
Refer to the following: http://codex.wordpress.org/Class_Reference/wpdb
0 1456 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 865 posted 13 years ago by redconservatory
Function to import array of php data to pod table
0 865 posted 13 years ago by stewartduffy
n nextgen-gallery/view/gallery.php, find these lines. Either comment out or remove.
0 748 posted 13 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 897 posted 13 years ago by redconservatory
Add the following to the top of your .php page
0 806 posted 13 years ago by redconservatory
0 722 posted 13 years ago by sudden85
Pulls in 'main-navigation' and 'social-navigation' menus into a single UL. the key is items_wrap => %3$s
0 905 posted 13 years ago by dan_hoerr
prints "We found 'N' result(s) for 'QUERYSTRING'"
0 683 posted 13 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 830 posted 13 years ago by relish
Use in the WP loop. User's registered email account on WP must also be assigned to Gravatar.
0 726 posted 13 years ago by jacksaidwhat
<?php> <!–Default> <?php> Note that sidebar.php must not always content the sidebar
0 682 posted 13 years ago by xavsio4
1 ... 13 14 15 16 17 ... 47