Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Place in your functions.php file and call it in your theme like this:
<?php>
1
1141
posted 14 years ago by afj176
It allows you to automatically get the first image from the current post, and display it.
2
3903
posted 14 years ago by math89
How to get actual category name in wordpress if is_category() is true
0
709
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
1377
posted 14 years ago by jonhenshaw
For use in conjunction with the get_work function in the theme functions template, functions.php.
Requires
0
788
posted 14 years ago by tylersticka
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
619
posted 14 years ago by zartgesotten
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0
661
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
976
posted 14 years ago by DarkPepe
(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
778
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
1105
posted 15 years ago by joelhaus