Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 34 35 36 37 38 ... 42
Place in your functions.php file and call it in your theme like this: <?php>
1 1139 posted 14 years ago by afj176
It allows you to automatically get the first image from the current post, and display it.
2 3900 posted 14 years ago by math89
How to get actual category name in wordpress if is_category() is true
0 706 posted 14 years ago by AlessandroCoscia
This script will return the URL for the current page you're on, including category and tag pages.
3 1376 posted 14 years ago by jonhenshaw
For use in conjunction with the get_work function in the theme functions template, functions.php. Requires
0 787 posted 14 years ago by tylersticka
Is also generates the .wp-post-image class for us to style
0 820 posted 14 years ago by crs
0 768 posted 14 years ago by gd6d
Of course the Plugin from wpml.org has to be installed, the file "wpml-integration.php" from docs/theme-integration has to be copied into your theme-directory and the call include "wpml-integration.php"; has to be copied to your functions.php. After...
0 616 posted 14 years ago by zartgesotten
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0 654 posted 14 years ago by Perun
0 631 posted 14 years ago by Perun
0 688 posted 14 years ago by Perun
This helps to avoid the "duplicated content" indexation by google on wordpress comment pages by changing the post content to the_excerpt ONLY in comment pages.
0 971 posted 14 years ago by DarkPepe
0 753 posted 14 years ago by gd6d
(Ref: http://yoast.com) While preparing my previous post on new features in WordPress 2.9, I ran across a ticket in Trac for something I'd been wanting to do for a while: specify a subfolder of the uploads directory for specific plugins, like my B...
0 775 posted 14 years ago by ksantoshp
In v1.6, the Thesis Theme has a bug which removes a necessary space in the HTML body tag if you add a filter targeting the thesis_body_classes hook. To get the native WP body_class function to work, use this code:
2 1104 posted 15 years ago by joelhaus
Just the basic Wordpress comments loop.
1 2529 posted 15 years ago by warrenonline
0 640 posted 15 years ago by gd6d
1 ... 34 35 36 37 38 ... 42