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 753 posted 13 years ago by thefrosty
Add this in the functions.php file, in your Wordpress theme.
0 1083 posted 13 years ago by ddavidd
0 815 posted 13 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 751 posted 13 years ago by raz
This is to check if a custom option exist from the admin panel.
1 729 posted 13 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 794 posted 13 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 848 posted 13 years ago by blueocto
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 599 posted 13 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 761 posted 13 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0 979 posted 13 years ago by vagrantradio
Posts with thumbs by category
2 831 posted 13 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 702 posted 13 years ago by sdxxx
Enables you to add a custom panel in the admin post section for a custom field input
1 678 posted 13 years ago by Yahosh
Easiest way to switch theme styles for WordPress demos.
1 893 posted 13 years ago by vagrantradio
0 829 posted 13 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 962 posted 13 years ago by vagrantradio
Originally from: http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0 751 posted 13 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 732 posted 13 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 937 posted 13 years ago by martinlucas
0 986 posted 13 years ago by rliverman
0 711 posted 13 years ago by rliverman
1 ... 21 22 23 24 25 ... 42