Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
How to get actual category name in wordpress if is_category() is true
0
549
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
1131
posted 14 years ago by jonhenshaw
For use in conjunction with the get_work function in the theme functions template, functions.php.
Requires
0
612
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
482
posted 14 years ago by zartgesotten
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0
509
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
794
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
612
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
901
posted 14 years ago by joelhaus
As you can probably see I use the Sociable plugin on this blog. I recently realized that the Digg link was broken. Here is the fix:
0
788
posted 14 years ago by captbaritone
Once the automatic button placement for the ShareThis plugin has been deactivated, this function added to custom_functions.php will place the button on single posts only (not the home page).
1
753
posted 14 years ago by thesislab
Add the code below to custom_functions.php to restore Thesis Options and Design Options to their defaults. Keep in mind that this has no effect on custom.css, or the other functions in custom_functions.php.
2
778
posted 14 years ago by thesislab
This function assumes a custom print.css located in the custom folder.
1
530
posted 14 years ago by thesislab