Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Validat the last Modifikation of this File
* on modification flush the rewrite rules
*
* @return void
**/
<?php
if ( is_category() ) {
echo category_description( $category_id );
}
// oder
if (category_description() ) {
echo category_description();
}
@web-dev-media
web-dev-media / add-nofollow-author-description.php
Last active August 29, 2015 14:06
Add Nofollow to the Author description
<?php
/**
* Plugin Name: Add Nofollow to the Author description
* Plugin URI: https://gist.github.com/web-dev-media/29bb5ac8ed8fb3731ecb
* Description: Add rel="nofollow" to the author description
* Version: 1.0
* Author: ../web/dev/media <[email protected]>
* Author URI: http://www.web-dev-media.de
* License: GPL2
*/
@web-dev-media
web-dev-media / clean-author-description.php
Last active August 29, 2015 14:06
Clean Author Description
<?php
/**
* Plugin Name: Strip HTML from Author description
* Plugin URI: https://gist.github.com/web-dev-media/ec549fa9b8c91c78b53a
* Description: Remove all HTML-Code from author description
* Version: 1.0
* Author: ../web/dev/media <[email protected]>
* Author URI: http://www.web-dev-media.de
* License: GPL2
*/