Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



1 ... 34 35 36 37 38 ... 47
A quick snippet of the PHP/Wordpress code behind my archive page, mainly for @andypoppins :D
0 1209 posted 15 years ago by psdesignuk
1 1562 posted 15 years ago by chrisdpratt
This will let you define individual templates for posts within specific categories. Simply name your post file like: single-SLUG.php
0 1079 posted 15 years ago by creativelifeform
catches the first image of a post so you can display it however you like within the loop
0 1092 posted 15 years ago by creativelifeform
courtesy of mark8barnes
1 1546 posted 15 years ago by iroybot
courtesy of mark8barnes (http://wordpress.org/support/profile/52354)
1 1701 posted 15 years ago by iroybot
2 1116 posted 15 years ago by chrisdpratt
Must be placed after the_post() so make sure you verify that if you place it in the sidebar.
0 2113 posted 15 years ago by Overdeath
1 870 posted 15 years ago by siliconsys
4 1672 posted 15 years ago by adambundy
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 1426 posted 15 years ago by Kokkekniven
0 890 posted 15 years ago by runeg
1 1367 posted 15 years ago by vagrantradio
All it takes is a stylesheet and a small function in the theme’s functions.php file
1 1438 posted 15 years ago by math89
0 1317 posted 15 years ago by gd6d
Change the excerpt value in functions.php
0 1404 posted 15 years ago by howardpanton
Add read more link for wordpress
0 1546 posted 15 years ago by howardpanton
Count the number of comments in wordpress blog
0 3060 posted 15 years ago by howardpanton
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 1390 posted 15 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 1176 posted 15 years ago by kristarella
0 1201 posted 15 years ago by gd6d
1 ... 34 35 36 37 38 ... 47