Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
885
posted 14 years ago by thefrosty
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
890
posted 14 years ago by raz
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
942
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
977
posted 14 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
694
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
890
posted 14 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0
1128
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
844
posted 14 years ago by sdxxx
Enables you to add a custom panel in the admin post section for a custom field input
1
824
posted 14 years ago by Yahosh
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
1114
posted 14 years ago by vagrantradio
Originally from:
http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0
914
posted 14 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
862
posted 14 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
1082
posted 14 years ago by martinlucas