Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 29 30 31 32 33 ... 47
0 1044 posted 15 years ago by theasta
The first thing to do is to create header files. Create as many different headers as you want. In this exemple, I have created 3 custom headers from my theme default file header.php, names headercontact.php, headergallery.php and headerdefault.php....
1 1971 posted 15 years ago by stephcode
Use this function to filter your first and last menu items and assign them each a specific class name. This is very handy when applying separators in CSS but want to exclude the first and/or last items.
3 1719 posted 15 years ago by fjarrett
Add your own text and/or link to the admin footer area. Don\\\'t forget to leave in some credit for WordPress and other helpful links.
1 1273 posted 15 years ago by fjarrett
Clean up your Admin Editor view by removing unwanted meta boxes that create clutter.
0 1288 posted 15 years ago by fjarrett
Keep your WordPress theme code free from harm by removing the Editor link in the Admin Appearance menu.
0 1289 posted 15 years ago by fjarrett
Clean up your WordPress backend by removing unwanted admin menus that create clutter.
0 1346 posted 15 years ago by fjarrett
Change \"wp\" to your database prefix. Note, this is the quick and dirty way. The more thorough way, which will also clean any tags or categories that are now unused, is here: http://www.snipplr.com/view/29570/get-rid-of-unused-post-revisions/
2 1316 posted 15 years ago by jessibird
An example of how to call the dropdown taxonomy term function in the template.
0 1289 posted 15 years ago by fjarrett
The dropdown taxonomy term function will enable you to show custom taxonomies in a dropdown menu. It supports both hierarchal (category-type) and non-hierarchal (tag-type) taxonomies.
0 1617 posted 15 years ago by fjarrett
Adds support for excerpts in WordPress pages. Great for using WordPress as a CMS. A text field appears in the admin panel and you can pull the excerpt from your template files (for teaser texts etc.)
0 1474 posted 15 years ago by hussong
Gets the date, pulls a list of upcoming events (posts from cat 6) and sorts by custom field \\\"event_date\\\" . Add to sidebar via [PHP Code Widget](http://wordpress.org/extend/plugins/php-code-widget/).
0 1780 posted 15 years ago by hussong
Uses action hook of the hybrid theme framework to launch function that modifies the query on the archive page for category 6.\\r\\n\\r\\nSorts by the custom field \\\"event_date\\\" and compares it to the current date.\\r\\n\\r\\nBased on [goto11\\\'...
0 1525 posted 15 years ago by hussong
Show the top tags by usage.
1 2016 posted 15 years ago by daipratt
The CSS code uses the Twenty Ten default them
0 1131 posted 15 years ago by gitano
2 1515 posted 15 years ago by crs
1 1043 posted 15 years ago by joseduenas
1 1478 posted 15 years ago by adambundy
Example code for a SlideDeck user to place their SlideDeck on the homepage of their WordPress site.
0 1653 posted 15 years ago by oriontimbers
run funciton once, ideally bind to activation hook of a plugin
2 1476 posted 15 years ago by errkk
1 3649 posted 15 years ago by alozuldo
Exclude category slugs, only shows parent cats.
0 1481 posted 15 years ago by vagrantradio
1 ... 29 30 31 32 33 ... 47