Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
711
posted 14 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
596
posted 14 years ago by goddess
Grab 5 latest Wordpress posts and display them on a non-Wordpress PHP page.
1
532
posted 15 years ago by kwilson
Use [short] in a post to insert the text from the function.
2
598
posted 15 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
1615
posted 15 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
580
posted 15 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
643
posted 15 years ago by kristarella
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
614
posted 15 years ago by selfmadepsyche