Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 28 29 30 31 32 ... 42
This custom loop will list all sub pages from a parent page including grand childrens. Example use: Car models listing
1 854 posted 15 years ago by simonbouchard
Place into fucntions.php
1 903 posted 15 years ago by jamiebrwr
Place into fucntions.php
0 1106 posted 15 years ago by jamiebrwr
This is what I wanted:\r\nI had a structure like this:\r\n-Artist\r\n --Peter Miller\r\n ---Pictures\r\n ---Press\r\n ---Videos\r\n\r\nand wanted to have the sub-sub-Menu when located on the \"Peter Miller\"-Page. \r\nSo that on \"Peter...
0 1015 posted 15 years ago by zartgesotten
Customize as needed using user roles.
0 1536 posted 15 years ago by vagrantradio
The code to call the normal Thesis Thumb is at http://snipplr.com/view/38971/thesis-thumbnail/\r\n\r\nTo test whether there is a thumbnail, and if not use another one, use this code in custom_functions.php.\r\n\r\nYou can change the class alignleft t...
0 856 posted 15 years ago by kristarella
Needs to be used within the loop.
0 843 posted 15 years ago by kristarella
Little code snippet for automatically adding a custom field for a page or post when they are published.
0 1035 posted 15 years ago by baires
0 957 posted 15 years ago by trepmal
This code adds the specified library to the header in WordPress unless you are in the admin section.
2 1084 posted 15 years ago by jonkemp
1 728 posted 15 years ago by neillh
By default, this template will use the page title as the category to pull from – but you can also create a custom field with ‘category’ as the name and the preferred category name as the value.
1 1029 posted 15 years ago by trepmal
3 1084 posted 15 years ago by trepmal
I use this as a starting point for widgets/plugins I develop.
1 1149 posted 15 years ago by trepmal
I don't recommend this, it just needed it for a particular situation. Does not work with dropdowns.
0 1081 posted 15 years ago by trepmal
Geo Mashup contextual maps display the results of a WordPress query, so they can be very useful in combination with the WordPress `query_posts` function. This example maps post with an example tag, but any call to `query_posts` could be substituted....
0 1151 posted 15 years ago by cyberhobo
I used this plugin to create new roles/capabilities: http://wordpress.org/extend/plugins/capsman/
1 763 posted 15 years ago by seafae
use 'custom_more' as custom field
2 1007 posted 15 years ago by screamwork
Add the following code to the end of the functions.php file. Et voilà !
1 1293 posted 15 years ago by math89
1 853 posted 15 years ago by ivorpad
This code goes into the index.php
1 921 posted 15 years ago by gera3d
Questo snippet modifica la posizione della data del post se questo è più vecchio di trenta giorni dalla data di pubblicazione.
0 925 posted 15 years ago by gavello
0 758 posted 15 years ago by lalaalaaa
This code so for placing images inside the wordpress template.
0 871 posted 15 years ago by gera3d
get custom fields value in wordpress theme
1 1244 posted 15 years ago by maximaker
Display anything based on the time of day
3 1081 posted 15 years ago by vagrantradio
1 ... 28 29 30 31 32 ... 42