Welcome To Snipplr
You searched for: http
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Our basic WP navigation menu setup. See [this page](http://codex.wordpress.org/Function_Reference/wp_nav_menu) for more documentation.
0
1057
posted 14 years ago by mindshare
While working on the iteration of a blog with russian contents we had to change the slugs from cyrillic to transliterated russian.
[RusToLat](http://mywordpress.ru/plugins/rustolat/) is a great plugin that does just that, but unfortunately it onl...
0
1315
posted 14 years ago by gryzzly
**Important: this snipplet has moved to Github.**
- [Programmatically change the active theme in Drupal 6](https://gist.github.com/1973197)
- [Programmatically change the active theme in Drupal 7](https://gist.github.com/1973201)
2
2801
posted 14 years ago by wildpeaks
Most of this code is by:
http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog
I simply added the Tag Cloud
0
1220
posted 14 years ago by daif
Embed a video via PHP without using `the_content` filter in WordPress. From luckykind at http://wordpress.org/support/topic/call-function-called-by-embed-shortcode-direct
0
1064
posted 14 years ago by jevets
Ported to PHP from here:
http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)
2
2561
posted 14 years ago by ozke
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0
2150
posted 14 years ago by danideu
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0
1902
posted 14 years ago by danideu
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0
1949
posted 14 years ago by danideu
I have to migrate from my old Drupal 5 site, that had multiple authors assigned to one node, and this is the solution for __Drupal 7__.
First of all you will need to download [__References__](http://drupal.org/project/references) module and ena...
1
1383
posted 14 years ago by Turek
Custom sorting for events based on a custom field
needs to be added to navigation-links.php
requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
0
1403
posted 14 years ago by hussong
PHP
How to obtain current page permalink url from a function on call on a page template and not from inside the Loop?
I got the answer to this question on WordPress Stack Exchange website:
http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is
0
2813
posted 14 years ago by racl101
Check if a string it's json encoded using regular expressions
Thanks to Jens Anders Bakke for his mootools code published in webfreak.no
http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0
1599
posted 14 years ago by jatubio
This fixes the way Magento imports data as it just keeps adding ‘straight join’ to the array which uses a lot of memory if your importing a lot of products and will kill the import.
Replace this function in /lib/Varien/Db/Select.php
This h...
0
1088
posted 14 years ago by TheJasonParker
Refer here for a full overview: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
9
2697
posted 14 years ago by Nettuts
Original custom fields code based on Wefunction's code here: http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/ enhanced to add support for uploading images.
1
1285
posted 14 years ago by simnor
Useful when used with the google map directions function http://snipplr.com/view/15530/php-create-google-map-directions-link/
0
1453
posted 14 years ago by iloveitaly
Example of using http://code.google.com/p/gapi-google-analytics-php-interface/ to graph google analytics data.
1
1458
posted 14 years ago by dtbaker
Originally from:
http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0
1249
posted 15 years ago by lawlesscreation
A sample wrapper class around Zend_File_Transfer_Adapter_Http
0
1199
posted 15 years ago by nikefido
Add custom logo to the login and dashboard of wordpress.
More customization functions at:
http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
1
1112
posted 15 years ago by rliverman
Code for the wordpress functions file to add a custom post type.
Full doc at:
http://codex.wordpress.org/Function_Reference/register_post_type
http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress
0
3391
posted 15 years ago by rliverman
Donwloads weren't working with https + ie6/ie7. This line solves the problem (order is important, **no-store** must be first).
0
2111
posted 15 years ago by ashsa
This script parses the entered text and it gets all URLs from the text. It will then shorten those URLs and replace the long URLs with shortened ones in the text.
If you need only the Shortener Services script, take a look at this snippet <a href="h...
1
1676
posted 15 years ago by stamba
**Important: this snipplet has moved to Github.**
- [Force the admin theme on additional non-admin paths in Drupal 6](https://gist.github.com/1973090)
3
1460
posted 15 years ago by wildpeaks
**Important: this snipplet has moved to Github.**
- [Programmatically log out the user in Drupal](https://gist.github.com/1973079)
0
1177
posted 15 years ago by wildpeaks
To be placed in template.php preprocess_page function.\\r\\n\\r\\nBreaks stylesheets into 2 style tags with limit of 30 @imports each. IE has a limitation of 31 @imports or 31 style tags. (source: [http://john.albin.net/ie-css-limits/single-style-tes...
1
1206
posted 15 years ago by resting