Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 21 22 23 24 25 ... 42
It's working now. Just having issue with it applying to all columns. Need to keep checking. (IE. have to tax's for testing, only one has the additional meta info attached, but they are both showing in the column as having the address as "active" (usi...
1 1170 posted 14 years ago by thefrosty
Add this in the functions.php file, in your Wordpress theme.
0 1767 posted 14 years ago by ddavidd
0 1336 posted 14 years ago by vagrantradio
This snippet check for custom field value (customfieldname), if there is nothing it will display default value (alternative text). This is my first WordPress Snippet :)
1 1306 posted 14 years ago by raz
This is to check if a custom option exist from the admin panel.
1 1172 posted 14 years ago by Farhan
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 1297 posted 14 years ago by simnor
<pre><code>* Use the proper DOCTYPE. * The opening <html> tag should include language_attributes(). * The "content-type" meta element should be placed before everything else, including the title element. * Use bloginfo() to fetch the title and des...
2 1510 posted 14 years ago by blueocto
1 1318 posted 14 years ago by blogjunkie
Add two new shortcodes to create Shopp product/category links in an easy way. **USAGE:** The following shortcodes will now be available along your posts, pages and text widgets [productlink id='' text=''] (Text is optional, if omitted the p...
0 968 posted 14 years ago by zreedeecom
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
0 1218 posted 14 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0 1576 posted 14 years ago by vagrantradio
Posts with thumbs by category
2 1288 posted 14 years ago by vagrantradio
Say you wanted to create a shortcode like this: [youtube id="991WcoEPwb8"] And instead of manually creating the HTML yourself, you wanted to use YouTube’s oEmbed provider to get the HTML. While that’s easy to do using WordPress’ existing fun...
3 1164 posted 14 years ago by sdxxx
Enables you to add a custom panel in the admin post section for a custom field input
1 1103 posted 15 years ago by Yahosh
Easiest way to switch theme styles for WordPress demos.
1 1403 posted 15 years ago by vagrantradio
0 1387 posted 15 years ago by rccc
Very useful line of code that I'm using very often to prevent old and cached CSS file being served to visitors. You just need to use timestamp of the file.
0 1675 posted 15 years ago by vagrantradio
Originally from: http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0 1253 posted 15 years ago by lawlesscreation
Use this to fix Pagination Problem on query posts page. This will fix the problem where clicking on the next page keeps showing same posts
1 1210 posted 15 years ago by Farhan
Takes the ID of a page, then displays a list of child pages with thumbnails and page titles. The thumbnail is generated from the 'featured image' of the particular child page.
2 1441 posted 15 years ago by martinlucas
0 1497 posted 15 years ago by rliverman
0 1159 posted 15 years ago by rliverman
1 ... 21 22 23 24 25 ... 42