Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
my wordpress loop with paging support and category,tag filteration
3
720
posted 13 years ago by root_hacker
WP Functions
Step 1: Upload the logo you want into the theme images folder
Step 2: Add the following code to your theme functions.php file
3
836
posted 13 years ago by silentpro
If post has featured image, use it.. If not, pick out the first in the post.. Still not working? Stick with the default one..
3
1009
posted 13 years ago by Wendelboe
This piece of code allows to insert text into the tinymce textarea when writing a WordPress plugin for instance.
0
647
posted 13 years ago by tomidle
Zugangsdaten
In der wp-config.php lassen sich bestimmte Konstanten definieren, sodass die Abfrage der Zugangsdaten und somit auch die Speicherung nicht mehr nötig ist. Sie lauten wie folgt:
define('FTP_HOST', 'ftp.example.org');
define('FTP_USE...
0
708
posted 13 years ago by gabbo
PHP
You can create a page template that you can apply to pages so only logged in members can view the contents:
You can create a page template that you can apply to pages so only logged in members can view the contents:
0
1087
posted 13 years ago by howardpanton
WordPress shortcode: Display content to registered users only
1
800
posted 13 years ago by howardpanton
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
751
posted 13 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
749
posted 13 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
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
847
posted 13 years ago by blueocto
In addition to CSS style information for your theme, style.css provides details about the Theme in the form of comments. The stylesheet must provide details about the Theme in the form of comments. No two Themes are allowed to have the same details l...
0
1481
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
595
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
760
posted 13 years ago by baires