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 603 posted 14 years ago by simonbouchard
Place into fucntions.php
1 619 posted 14 years ago by jamiebrwr
Place into fucntions.php
0 810 posted 14 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 672 posted 14 years ago by zartgesotten
Customize as needed using user roles.
0 1179 posted 14 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 621 posted 14 years ago by kristarella
Needs to be used within the loop.
0 626 posted 14 years ago by kristarella
Little code snippet for automatically adding a custom field for a page or post when they are published.
0 741 posted 14 years ago by baires
0 675 posted 14 years ago by trepmal
This code adds the specified library to the header in WordPress unless you are in the admin section.
2 769 posted 14 years ago by jonkemp
1 498 posted 14 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 737 posted 14 years ago by trepmal
3 826 posted 14 years ago by trepmal
I use this as a starting point for widgets/plugins I develop.
1 843 posted 14 years ago by trepmal
I don't recommend this, it just needed it for a particular situation. Does not work with dropdowns.
0 778 posted 14 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 838 posted 14 years ago by cyberhobo
I used this plugin to create new roles/capabilities: http://wordpress.org/extend/plugins/capsman/
1 544 posted 14 years ago by seafae
use 'custom_more' as custom field
2 716 posted 14 years ago by screamwork
Add the following code to the end of the functions.php file. Et voilà !
1 905 posted 14 years ago by math89
1 603 posted 14 years ago by ivorpad
This code goes into the index.php
1 679 posted 14 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 657 posted 14 years ago by gavello
0 518 posted 14 years ago by lalaalaaa
This code so for placing images inside the wordpress template.
0 581 posted 14 years ago by gera3d
get custom fields value in wordpress theme
1 890 posted 14 years ago by maximaker
Display anything based on the time of day
3 784 posted 14 years ago by vagrantradio
1 ... 28 29 30 31 32 ... 42