Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



If you run a query to delete old posts manually from MySQL in a WordPress database, the old tags will remain and appear in your tag cloud/listing. This allows you to identify those unused tags, and then delete them with an additional query.
0 739 posted 15 years ago by jkriddle
Recently moved my Wordpress blog to a tumblr account while I was removing a hosting account, wrote this script to do the transfer for me using Wordpress' Export feature and Tumblr's API. It's rough around the edges but gets the job done!
2 1344 posted 15 years ago by shakefon
2 720 posted 15 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 1381 posted 15 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 820 posted 15 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 898 posted 15 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 754 posted 15 years ago by goddess
Grab 5 latest Wordpress posts and display them on a non-Wordpress PHP page.
1 700 posted 15 years ago by kwilson
Use [short] in a post to insert the text from the function.
2 765 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 1889 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 738 posted 15 years ago by kristarella
6 880 posted 15 years ago by kristarella
4 720 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 838 posted 15 years ago by kristarella
2 686 posted 15 years ago by spark9
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 777 posted 15 years ago by selfmadepsyche
Edit functions.php and sidebar.php
2 856 posted 15 years ago by selfmadepsyche
3 575 posted 15 years ago by selfmadepsyche