Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 29 30 31 32 33 ... 47
0 811 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 1572 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 1345 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 968 posted 15 years ago by fjarrett
Clean up your Admin Editor view by removing unwanted meta boxes that create clutter.
0 992 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 1030 posted 15 years ago by fjarrett
Clean up your WordPress backend by removing unwanted admin menus that create clutter.
0 1053 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 1011 posted 15 years ago by jessibird
An example of how to call the dropdown taxonomy term function in the template.
0 1021 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 1272 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 1165 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 1452 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 1195 posted 15 years ago by hussong
Show the top tags by usage.
1 1714 posted 15 years ago by daipratt
The CSS code uses the Twenty Ten default them
0 876 posted 15 years ago by gitano
2 1209 posted 15 years ago by crs
1 782 posted 15 years ago by joseduenas
1 1170 posted 15 years ago by adambundy
Example code for a SlideDeck user to place their SlideDeck on the homepage of their WordPress site.
0 1323 posted 15 years ago by oriontimbers
run funciton once, ideally bind to activation hook of a plugin
2 1163 posted 15 years ago by errkk
1 3238 posted 15 years ago by alozuldo
Exclude category slugs, only shows parent cats.
0 1158 posted 15 years ago by vagrantradio
1 ... 29 30 31 32 33 ... 47