Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 31 32 33 34 35 ... 47
Used these styles to comply with default wordpress WYSIWYG class names
0 638 posted 14 years ago by myke
You will need to add “define(‘WP_ALLOW_MULTISITE’, true);” in your wp-config.php to make the multisite function accessible. If you want to copy paste, use the code block below:
0 630 posted 14 years ago by myke
Display random posts without a plugin
4 815 posted 14 years ago by DanielPaul
By default wordpress does not include post thumbnails in RSS Feeds. Enable in by add this code the functions.php located inside your themes folder.
1 1003 posted 14 years ago by mediamilan
0 655 posted 14 years ago by jamiebrwr
This custom function is useful if you want to get the ID of a page.
1 891 posted 14 years ago by simonbouchard
Place into fucntions.php
3 694 posted 14 years ago by jamiebrwr
Place into fucntions.php
0 762 posted 14 years ago by jamiebrwr
This code will list all children pages from a parent page. This method is useful when you don\\\'t want to list all parent pages when you are on a parent page that have no children pages.
0 690 posted 14 years ago by simonbouchard
Place into fucntions.php
0 719 posted 14 years ago by jamiebrwr
Place into fucntions.php
1 613 posted 14 years ago by jamiebrwr
Place into fucntions.php
0 745 posted 14 years ago by jamiebrwr
This custom loop will list all sub pages from a parent page including grand childrens. Example use: Car models listing
1 639 posted 14 years ago by simonbouchard
Place into fucntions.php
1 658 posted 14 years ago by jamiebrwr
Place into fucntions.php
0 845 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 706 posted 14 years ago by zartgesotten
Customize as needed using user roles.
0 1224 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 651 posted 14 years ago by kristarella
Needs to be used within the loop.
0 652 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 778 posted 14 years ago by baires
0 706 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 809 posted 14 years ago by jonkemp
1 519 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 781 posted 14 years ago by trepmal
3 853 posted 14 years ago by trepmal
I use this as a starting point for widgets/plugins I develop.
1 880 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 806 posted 14 years ago by trepmal
1 ... 31 32 33 34 35 ... 47