Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



1 ... 35 36 37 38 39 ... 43
How to get actual category name in wordpress if is_category() is true
0 552 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 1134 posted 14 years ago by jonhenshaw
For use in conjunction with the get_work function in the theme functions template, functions.php. Requires
0 618 posted 14 years ago by tylersticka
Is also generates the .wp-post-image class for us to style
0 662 posted 14 years ago by crs
0 639 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 484 posted 14 years ago by zartgesotten
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0 512 posted 14 years ago by Perun
0 501 posted 14 years ago by Perun
0 552 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 798 posted 14 years ago by DarkPepe
0 593 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 615 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 906 posted 14 years ago by joelhaus
Just the basic Wordpress comments loop.
1 980 posted 14 years ago by warrenonline
0 507 posted 14 years ago by gd6d
0 670 posted 14 years ago by gd6d
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 792 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 754 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 779 posted 14 years ago by thesislab
This function assumes a custom print.css located in the custom folder.
1 533 posted 14 years ago by thesislab
1 ... 35 36 37 38 39 ... 43