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 1779 posted 15 years ago by thefrosty
Add this in the functions.php file, in your Wordpress theme.
0 2495 posted 15 years ago by ddavidd
0 1975 posted 15 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 1958 posted 15 years ago by raz
This is to check if a custom option exist from the admin panel.
1 1732 posted 15 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 1864 posted 15 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 2114 posted 15 years ago by blueocto
1 1909 posted 15 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 1473 posted 15 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 1734 posted 15 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0 2221 posted 15 years ago by vagrantradio
Posts with thumbs by category
2 1884 posted 15 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 1738 posted 15 years ago by sdxxx
Enables you to add a custom panel in the admin post section for a custom field input
1 1609 posted 15 years ago by Yahosh
Easiest way to switch theme styles for WordPress demos.
1 2097 posted 15 years ago by vagrantradio
0 2036 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 2288 posted 15 years ago by vagrantradio
Originally from: http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0 1782 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 1802 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 1979 posted 15 years ago by martinlucas
0 2116 posted 15 years ago by rliverman
0 1716 posted 15 years ago by rliverman
1 ... 21 22 23 24 25 ... 42