Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



2 1855 posted 17 years ago by kristarella
This turns the about page into a featured category post page. The principles for just a regular custom page template with sidebars is there too.
3 3311 posted 17 years ago by kristarella
This provides a teaser, with content from a custom feild, or the excerpt if no field exists. Everything except the title and edit link need to be turned off in the options.
3 1963 posted 17 years ago by kristarella
this is how to automatically get short urls for your blog posts in wordpress, What you need is to decide which tinyurl service you will be using and get its api URL, for example rinyurl.com , bit,ly, tr.im, here are the api URLS for the mo...
0 2448 posted 17 years ago by nerdsane
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.
3 1844 posted 17 years ago by goddess
Grab 5 latest Wordpress posts and display them on a non-Wordpress PHP page.
1 1827 posted 17 years ago by kwilson
Use [short] in a post to insert the text from the function.
2 1872 posted 17 years ago by kristarella
Put this before the loop in archive.php to have posts in the archive for category '26' sorted by custom field 'date'. Assign sortable values like '090501' or '2009-05-01' to those fields when editing posts and your Upcoming Events will be sorted by...
8 3703 posted 17 years ago by hussong
This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.
2 1801 posted 17 years ago by kristarella
6 2088 posted 17 years ago by kristarella
4 2134 posted 17 years ago by kristarella
This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items. The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look...
5 2294 posted 17 years ago by kristarella
2 1906 posted 17 years ago by spark9
0 2168 posted 17 years ago by rolandog
Load jQuery into WordPress generated pages, the wp_enqueue_script function can be used in plugins as well. OR Add and load a new script that depends on jQuery (this will also cause it to load jQuery into the page as well).
2 2011 posted 17 years ago by selfmadepsyche
Edit functions.php and sidebar.php
2 2109 posted 17 years ago by selfmadepsyche
3 1529 posted 17 years ago by selfmadepsyche
1 1637 posted 17 years ago by selfmadepsyche