Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
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
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
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
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
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
Add the following code to the end of the functions.php file. Et voilà !
1
905
posted 14 years ago by math89
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