Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Change to line in page template file to call a different sidebar.
0
766
posted 14 years ago by lromak
PHP
How to replace the default WordPress “W†logo in the administrative header with a custom alternative
First, create an image that fits the allocated space. As of WordPress 2.8, the logo is a 30 pixels wide and 31 pixels tall transparent GIF. When using a transparent GIF or 8-bit PNG, ensure that the image matte matches the header background color: he...
3
1577
posted 14 years ago by lromak
Appends a custom more-link to all excerpts, regardless of whether they're auto-generated or pulling manual excerpts from the excerpt field. Note: Automatic excerpts still show the default […] at the end (before the more-link).
Found here: http:/...
1
750
posted 14 years ago by hussong
This can be dropped into either index.php or any custom page template to display posts in the "Featured" category.
Alternatively you could create a custom loop (loop-featured.php, for example) using this query.
1
677
posted 14 years ago by mike_fowler
I\'m definitely not the best at Regex. But this function seems to be timing out, and adding like 4o links to the post. Got any ideas?
0
928
posted 14 years ago by thefrosty
PHP
Display wordpress posts with custom date meta value, ordered by this date, with a defined taxonomy
0
1057
posted 14 years ago by Mat_
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
853
posted 14 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
846
posted 14 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
627
posted 14 years ago by fjarrett
Clean up your Admin Editor view by removing unwanted meta boxes that create clutter.
0
636
posted 14 years ago by fjarrett