Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
courtesy of mark8barnes (http://wordpress.org/support/profile/52354)
1
674
posted 14 years ago by iroybot
PHP
Wordpress - Show link to the next and previos brother of the current page, and a link to the page parent
Must be placed after the_post()
1
1336
posted 14 years ago by Overdeath
Must be placed after the_post() so make sure you verify that if you place it in the sidebar.
0
893
posted 14 years ago by Overdeath
You can see the results under a single post, where photos are shown, without any text. The photo is taken from the uploaded photo from the post. All you need is the get the image plugin from www.justintadlock.com
0
636
posted 14 years ago by Kokkekniven
All it takes is a stylesheet and a small function in the theme’s functions.php file
1
623
posted 14 years ago by math89
Add the PHP to custom_functions.php and the following CSS to custom.css
.custom ul.menu li.search {float:right;}
.custom ul.menu li.search form {padding:0.3em;}
.custom ul.menu li.search form input {padding:0.4em;}
0
693
posted 14 years ago by kristarella
This is designed to show 10 posts on each of the pages after the home/blog page when the home page only shows 5 (because if you just use posts_per_page=10 without the offset you will lose the most recent posts numbered 6-10 in between the first and...
0
507
posted 14 years ago by kristarella
Just run the following query on your WordPress database, and all revisions (As well as meta associated with it) will be deleted from your database.
2
679
posted 14 years ago by jessibird
This template code will work only in the WordPress Loop to include a map if the Geo Mashup plugin is active and the current post has a location.
0
701
posted 14 years ago by cyberhobo