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 1343 posted 15 years ago by afj176
It allows you to automatically get the first image from the current post, and display it.
2 4314 posted 15 years ago by math89
How to get actual category name in wordpress if is_category() is true
0 881 posted 15 years ago by AlessandroCoscia
This script will return the URL for the current page you're on, including category and tag pages.
3 1596 posted 15 years ago by jonhenshaw
For use in conjunction with the get_work function in the theme functions template, functions.php. Requires
0 960 posted 15 years ago by tylersticka
Is also generates the .wp-post-image class for us to style
0 966 posted 15 years ago by crs
0 940 posted 15 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 786 posted 15 years ago by zartgesotten
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0 800 posted 15 years ago by Perun
0 774 posted 15 years ago by Perun
0 848 posted 15 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 2324 posted 15 years ago by DarkPepe
0 925 posted 15 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 942 posted 15 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 1309 posted 15 years ago by joelhaus
Just the basic Wordpress comments loop.
1 2835 posted 15 years ago by warrenonline
0 786 posted 15 years ago by gd6d
1 ... 34 35 36 37 38 ... 42