<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AEXT.NET MAGAZINE &#187; WordPress Tips</title>
	<atom:link href="http://aext.net/tag/wordpress-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://aext.net</link>
	<description>How to Create a Website</description>
	<lastBuildDate>Wed, 30 May 2012 05:03:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WordPress 3 and What You Can Do!</title>
		<link>http://aext.net/2010/07/wordpress-3-and-what-you-can-do/</link>
		<comments>http://aext.net/2010/07/wordpress-3-and-what-you-can-do/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 16:30:31 +0000</pubDate>
		<dc:creator>Bima Arafah</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress Hack]]></category>
		<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://aext.net/?p=6274</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/07/wordpress-3-and-what-you-can-do/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/07/wordpress-3-and-what-you-can-do/" height="61" width="51" /></a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/07/wordpress-3-and-what-you-can-do/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/07/wordpress-3-and-what-you-can-do/" height="61" width="51" /></a></p><p>After a quite long awaited by many WordPress users all over the world, finally this world most popular blog portal launchs its brand-new version WordPress 3.0 a.k.a Thelonius.</p>
<p>Thelonius is the software version 13th which have been launched by WordPress until now. We’ll find not less than 2.700 changes and 1.217 bugs fixed inside it. The most striking change is its capability to run some blogs at the same time or generally called <strong>Multiside Capabilities (with WordPress MU)</strong>. Before, each blogs on the web shall be run separately. This capability to run many blogs has been integrated into its brand-new version, so that it can be utilized easier. Bloggers are now be able to upgrade through upgrade menu on the WordPress or we can also download it manually. So what any other features can we maximize on it? Let’s now discuss it a lil’ bit deeper.</p>
<p><span id="more-6274"></span></p>
<div class="txtad-cont">
<div class="txtad-ad">WPfromPSD.com is a leading <a title="PSD to WordPress" href="http://wpfrompsd.com">PSD to WordPress</a> coding shop.</div>
</div>
<h3>New, username and password while installation</h3>
<hr />
<div class="bigimage"><img class="aligncenter size-full wp-image-6277" title="WP3.0 New Username and Password" src="http://aext.net/wp-contents/uploads/2010/07/username.jpg" alt="WP3.0 New Username and Password" width="500" height="343" /></div>
<p>Some people urgently recommend to deactivate or even to avoid using default username and password which are username : admin and default password on every installations. Cause, there were many ways you could be “hijacked” possibly use to break its default username and password on this most crucial case if you’re using WordPress before this 3rd version. But you need it no more now, you’re free to define your username and password at the beginning of WordPress installation. So you don’t need to hack on your WordPress anymore to eliminate its admin default username and password.</p>
<h3>Twenty Ten default theme</h3>
<hr />
<div class="bigimage"><img class="aligncenter size-full wp-image-6278" title="WP3.0 Twenty Ten Default Theme " src="http://aext.net/wp-contents/uploads/2010/07/twenty-ten.jpg" alt="WP3.0 Twenty Ten Default Theme " width="500" height="343" /></div>
<p>After all this time WordPress installation has been bundled with its default theme called Kubrick, now it’s no more with. WordPress now comes with its new bundled theme which’s named Twenty Ten! It’s very good with sweet 2-column display including widgetized sidebar and footer. And believe it or not, now WordPress is equipped with explanation documentation that facilitate anyone to know more deeper about WordPress details. You can check it through the source code from this twenty ten theme. It helps, doesn’t it?</p>
<p>You must know that this twenty ten theme is supported with some new features from WordPress 3, which are:</p>
<h4>Background customization</h4>
<p>Now with WordPress 3 you can change your background with no more trouble. As twenty ten shows us, on the picture below.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6294" title="Wordpress Background Customization" src="http://aext.net/wp-contents/uploads/2010/07/c-bg.jpg" alt="Wordpress Background Customization" width="500" height="343" /></div>
<p>Then how to apply it to a theme? Easy, just write down this codes into functions.php file in your theme folder.</p>
<pre>    // allows users to set a custom background
    add_custom_background();</pre>
<p>if you’re done with the codes, you’ll see background menu on the Appearance section</p>
<h4>New editor style</h4>
<p>Many people may find some difficulties to see the style that’s being used by wordpress (previous version) when they’re writing. If you use to write on blog using windows live writer perhaps you can also load the current style that’s being used on your theme onto your visual editor. But you need it no more now, wordpress 3 gives easiness for us to be able to see our preview style while we’re writing on our tiny mce editor, pretty cool huh? Same as before, we need to write down the scripts below to functions.php file in our theme folder.</p>
<pre>  // Apply visual editor with and match the theme style.
  add_editor_style();</pre>
<p>After that don’t forget to create <strong>editor-style.css</strong> file in your theme folder and copy style.css file content then paste it onto editor-style.css file you just created. I suggest you to copy on the sections where your posts will be displayed, which are all classes .entry on style.css file.</p>
<h3>Custom menu management</h3>
<hr />
<p>Many wordpress themes developers intentionally build theme option to their customers, what is the purpose? Just in order to ease them to manage menu navigation layout on their themes. Then, what wordpress 3.0 try to offer to us on this feature, in my opinion it’s proportional with any other CMS out there which also offer this kind of feature on their back-end pages.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6295" title="Wordpress Menu" src="http://aext.net/wp-contents/uploads/2010/07/menu.jpg" alt="Wordpress Menu" width="500" height="343" /></div>
<p>Then how do you apply it on your own theme? It’s quite easy, you just need to define this menu on your functions.php file.</p>
<pre> add_theme_support( 'nav-menus' );</pre>
<p>then attach this onto your header section</p>
<pre>wp_nav_menu( array( 'sort_column' =&gt; 'menu_order', 'container_class' =&gt; 'menu-header' ) );</pre>
<h4>Example custom menu</h4>
<p>It’s simple, isn’t it? Then how if I forget to define it on the header section? Simple, now I’ll give some instances for us to explore a bit on this menu feature and let’s just get going. First we have to define our menu later on functions.php file on themes folder.</p>
<pre>/*
 * CUSTOM FUNCTION STARTING FROM HERE
 */

add_action( 'init', 'register_my_menus' );
function register_my_menus() {
    register_nav_menus(
        array(
            'top-menu' =&gt; __( 'Top Menu' ),
            'middle-menu' =&gt; __( 'Middle Menu' ),
            'bottom-menu' =&gt; __( 'Bottom Menu' )
        )
    );
}</pre>
<p>As we see above, that I defined it for 3 kind of custom menus that I’d like to display it later.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6296" title="menu-1" src="http://aext.net/wp-contents/uploads/2010/07/menu-1.jpg" alt="Wordpress menu" width="500" height="343" /></div>
<p>Okay then, let’s create menu, give your menu a name TOP, MIDDLE, BOTTOM through “Menu Name” and choose category and page that you’re willing to include to each of your custom menus. I made an example and defined it below</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6297" title="menu-2" src="http://aext.net/wp-contents/uploads/2010/07/menu-2.jpg" alt="" width="500" height="343" /></div>
<p>After above we defined it for Top Menu, then find this script line on your header.php file</p>
<pre> wp_nav_menu( array( 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary' ) );</pre>
<p>then change those lines with your custom Top Menu</p>
<pre>// you can use this type too to call wp_menu_nav
// wp_nav_menu( 'sort_column=menu_order&amp;container_class=menu-header&amp;theme_location=top-menu' );

if ( has_nav_menu( 'top-menu' ) ) {
    wp_nav_menu( array( 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'top-menu', 'fallback_cb' =&gt; '' ) );
}</pre>
<p>In here is the process to match if there is a matching clauses found with top-menu, then it’ll return true value. You can see, I used has_nav_menu and wp_nav_menu functions. And here it’s the preview from what we’ve just done</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6298" title="Wordpress menu" src="http://aext.net/wp-contents/uploads/2010/07/menu-3.jpg" alt="Wordpress menu" width="500" height="343" /></div>
<p>How’s that, get enough? Yup I guess it’s enough, but how’s the way to show the description on each menus? Very good question. What’s the use of menu description as seen on menu management picture if we couldn’t display it. In here we need to do some hackings, write down the scripts below onto your functions.php file to display the menu description</p>
<pre>// Hook nav rules to showing description page
// Look details information by this page wp-includes/nav-menu-template.php
// or by this link - http://core.svn.wordpress.org/trunk/wp-includes/nav-menu-template.php
add_filter('walker_nav_menu_start_el', 'description_in_nav_el', 10, 4);
function description_in_nav_el($item_output, $item, $depth, $args){
    $attributes  = ! empty( $item-&gt;attr_title ) ? ' title="'  . esc_attr( $item-&gt;attr_title ) .'"' : '';
    $attributes .= ! empty( $item-&gt;target )     ? ' target="' . esc_attr( $item-&gt;target     ) .'"' : '';
    $attributes .= ! empty( $item-&gt;xfn )        ? ' rel="'    . esc_attr( $item-&gt;xfn        ) .'"' : '';
    $attributes .= ! empty( $item-&gt;url )        ? ' href="'   . esc_attr( $item-&gt;url        ) .'"' : '';

    return preg_replace('/(&lt;a.*?&gt;[^&lt;]*?)&lt;/', "&lt;a $attributes&gt;" . "&lt;span class='test'&gt;{$item-&gt;title}&lt;/span&gt;&lt;br&gt;&lt;span class='test'&gt;{$item-&gt;post_content}&lt;/span&gt;&lt;", $item_output);
}</pre>
<p>Now we can see the condition from our custom menu.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6299" title="wordpress menu" src="http://aext.net/wp-contents/uploads/2010/07/menu-4.jpg" alt="wordpress menu" width="500" height="343" /></div>
<p>And these are the source codes after we hacked walker nav menu above</p>
<pre>&lt;li id="menu-item-43" class="menu-item menu-item-type-post_type"&gt;&lt;br&gt;
&lt;a href="http://localhost/wp30/portfolio/"&gt;&lt;span class="test-menu-title"&gt;Portfolio&lt;/span&gt;&lt;br&gt;&lt;span class"test-menu-desc"&gt;See my work!&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</pre>
<p>You can see it, if there’s a description then it’ll be displayed, but if there’s no menu description found then it’ll only return empty value (space). In here we see that we break title from menu and description from the menu itself, so that we’re free to customize the class from test-menu-title and test-menu-desc with bold, color, italic and anything you want! I think that’s enough for now. Have fun with your menu folks!</p>
<h4>Further information about New Menu System:</h4>
<ul>
<li><a href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus">Excellent article on nav menus by Justin Tadlock</a></li>
<li><a href="http://bavotasan.com/tutorials/wordpress-3-checking-out-the-new-menu-system/">WordPress 3.0: Checking out the New Menu System</a></li>
<li><a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">Function Reference: wp nav menu – WordPress Codex</a></li>
</ul>
<h3>Custom Post Types for Content Management</h3>
<hr />
<p>This feature is the most awaited feature by wordpress users and developers, the reason is through this feature we’re be able to use wordpress not only as a blog machine but also as full Content Management System. What I like from this feature is the content classification is run separately, for example when we build a portfolio. How, let’s just study it step by step.</p>
<p>Custom post types, in its usage for a portfolio it’s very ease us for content sorting which has particular posting category/type. There are so many things that we can create and develop through this custom post types, and I’ll give some instances to you how to create portfolio page using this custom post type and combining with your custom field. First of all, we need to write down the scripts below onto our functions.php file.</p>
<pre>/*
 * custom post for super porto
 */

add_action( 'init', 'create_my_post_types' );

function create_my_post_types() {
    register_post_type( 'pf_cpt',
        array(
                'labels' =&gt; array(
                'name' =&gt; __( 'Portfolios' ),
                'singular_name' =&gt; __( 'Portfolio' ),
                'add_new' =&gt; __( 'Add New Item' ),
                'add_new_item' =&gt; __( 'Add New Portfolio' ),
                'edit' =&gt; __( 'Edit Item' ),
                'edit_item' =&gt; __( 'Edit Portfolio' ),
                'new_item' =&gt; __( 'New Portfolio' ),
                'view' =&gt; __( 'View Portfolio' ),
                'view_item' =&gt; __( 'View Portfolio' ),
                'search_items' =&gt; __( 'Search Portfolio Items' ),
                'not_found' =&gt; __( 'No Portfolio Items found' ),
                'not_found_in_trash' =&gt; __( 'No Portfolio Items found in Trash' ),
                'parent' =&gt; __( 'Parent Portfolio' ),
            ),
            'public' =&gt; true,
            'show_ui' =&gt; true,
            'menu_icon' =&gt; get_stylesheet_directory_uri() . '/images/picture.png', // icon defined
            'menu_position' =&gt; 20, // 5 - below Posts | 10 - below Media | 20 - below Pages
            'hierarchical' =&gt; true,
            'supports' =&gt; array( 'title', 'editor', 'custom-fields', 'thumbnail' )
        )
    );

    register_taxonomy( 'charge-type', 'pf_cpt', // in-case you do for commercial or free (such as foundation etc)
        array(
             'hierarchical' =&gt; false, // or true
             'label' =&gt; __('Free or Commercial'),
             'query_var' =&gt; 'charge',
             'rewrite' =&gt; array('slug' =&gt; 'charge' ) ) );

    register_taxonomy( 'client', 'pf_cpt', // in-case you have 2 or 3 boss (clients) at one project
        array(
             'hierarchical' =&gt; false, // or true
             'label' =&gt; __('Clients'),
             'query_var' =&gt; 'client',
             'rewrite' =&gt; array('slug' =&gt; 'client' ) ) );

    register_taxonomy( 'project-type', 'pf_cpt',
        array(
             'hierarchical' =&gt; false, // or true
             'label' =&gt; __('Project Type'),
             'query_var' =&gt; 'project',
             'rewrite' =&gt; array('slug' =&gt; 'project' ) ) );

    register_taxonomy( 'tasks', 'pf_cpt', // for specified your tasks
        array(
             'hierarchical' =&gt; false, // or true
             'label' =&gt; __('Your Task'),
             'query_var' =&gt; 'task',
             'rewrite' =&gt; array('slug' =&gt; 'task' ) ) );
}</pre>
<p>Another reference about register post types, <a href="http://codex.wordpress.org/Function_Reference/register_post_type">Function Reference/register post type</a>. And then after we wrote down the codes above onto functions.php file, let’s now see the back-end display for custom post types that we’ve just created.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6302" title="Wordpress custom post" src="http://aext.net/wp-contents/uploads/2010/07/cpt-1.jpg" alt="Wordpress custom post" width="500" height="350" /></div>
<p>And our this editor page we’ll be looked like this after we clicked Add New Item</p>
<div class="bigimage"><a href="http://aext.net/wp-contents/uploads/2010/07/cpt-2.jpg"><img class="aligncenter size-medium wp-image-6303" title="wordpress custom post" src="http://aext.net/wp-contents/uploads/2010/07/cpt-2-500x383.jpg" alt="wordpress custom post" width="500" height="383" /></a>Click to see full size image</p>
</div>
<p>You can see what we’ve done through the preview above. On the bottom-left side Menu Pages (because we gave value 20 before) there’s our new menu including its taxonomies custom for controlling based on its related custom post type. On the middle section, we have title, editor, and custom field for editing needs. On the right side coloumn, there are custom taxonomies input for Project Type (Logo, Website, etc), Charge (Commercial, Non-Commercial, etc), Clients (Company A, B, C, etc) Your Task (WordPress integration, xHTML and CSS design, PSD Design, etc)</p>
<p>Now how about that? Anyone has a question?</p>
<p><em><strong>“Yes, I have a question. How to create Custom URL for each items please?”</strong></em></p>
<p>Okay, we have two tricks in here. The first one is with adding metabox on our editor custom post types pages.</p>
<pre> add_meta_box( $id, $title, $callback, $page, $context, $priority );</pre>
<p>Write down these codes onto functions.php file to create meta box that will be our custom url</p>
<pre>&lt;?php
    add_action("admin_init", "pf_cpt_url");
    add_action('save_post', 'update_pf_cpt_url');
    function pf_cpt_url(){
        // http://codex.wordpress.org/Function_Reference/add_meta_box
        // add_meta_box( $id, $title, $callback, $page, $context, $priority );
        add_meta_box("portfolio_details", "Custom URL", "pf_cpt_url_options", "pf_cpt", "side", "low");
    }
    function pf_cpt_url_options(){
        global $post;
        $custom = get_post_custom($post-&gt;ID);
        $custom_url = $custom["custom_url"][0];
?&gt;
    &lt;div id="portfolio-options"&gt;
        &lt;label&gt;URL:&lt;/label&gt;&lt;input name="custom_url" value="&lt;?php echo $custom_url; ?&gt;" /&gt;       
    &lt;/div&gt;&lt;!--end portfolio-options--&gt;   
&lt;?php
    }
    function update_pf_cpt_url(){
        global $post;
        update_post_meta($post-&gt;ID, "custom_url", $_POST["custom_url"]);
    }
?&gt;</pre>
<p>And it’ll be seen like this later on your editor page</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6304" title="wordpress custom post" src="http://aext.net/wp-contents/uploads/2010/07/cpt-3.jpg" alt="wordpress custom post" width="500" height="350" /></div>
<p>And the second one is with using custom field, I myself is prefer to use custom field. But once again, it’s all up to you. So now let’s we fill our custom post types first with some datas which will be displayed later on the portfolio page.</p>
<p>By default, you can display your custom post types on the portfolio page this way, write down the codes below on the template file for your portfolio page</p>
<pre>&lt;?php
/*
Template Name: Portfolio
*/
?&gt;
&lt;?php get_header(); ?&gt;
&lt;?php
&lt;div id="content"&gt;
&lt;?php $p_loop = new WP_Query( array( 'post_type' =&gt; 'pf_cpt', 'posts_per_page' =&gt; 10 ) ); ?&gt;
&lt;?php while ( $p_loop-&gt;have_posts() ) : $p_loop-&gt;the_post(); ?&gt;
&lt;?php the_title( '&lt;h2 class="entry-title"&gt;&lt;a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark"&gt;', '&lt;/a&gt;&lt;/h2&gt;' ); ?&gt;

&lt;?php 

  $custom = get_post_custom($post-&gt;ID);
  $website_url = $custom["custom_url"][0];
  if($custom != "" ) {

  ?&gt;

&lt;a href="&lt;?php echo $website_url; ?&gt;"&gt;&lt;?php the_post_thumbnail(); ?&gt; &lt;/a&gt;

&lt;?php

  } else { the_post_thumbnail(); }

  ?&gt;

&lt;div class="entry-content"&gt;&lt;?php the_content(); ?&gt;&lt;/div&gt; 

&lt;?php endwhile; ?&gt;
&lt;/div&gt;&lt;!-- #content --&gt;

?&gt;
&lt;?php get_footer(); ?&gt;</pre>
<p>How’s the display, do you see the thumbnail that you’ve defined it before including its custom taxonomies you’ve determined on each items? Then how about to display and format the display? It’s easy. Later we’ll get it formatted based on each Project Type that you’ve defined through custom taxonomies and it’ll be indexed based on custom field with key = year and value = yyyy-mm-dd, and you have to know that in here I defined Project Type with value Website, Logo, Poster, etc where one item of portfolio is representated by one project type</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6305" title="wordpress custom post" src="http://aext.net/wp-contents/uploads/2010/07/cpt-4.jpg" alt="wordpress custom post" width="500" height="230" /></div>
<p>Then paste these scripts into template file for the page above so it’s gonna be:</p>
<pre>&lt;?php
/*
Template Name: Portfolio
*/
?&gt;

&lt;?php get_header(); ?&gt;

&lt;div id="content"&gt;
&lt;h1&gt;Website&lt;/h1&gt;

&lt;?php

$querystr = "SELECT *
  FROM $wpdb-&gt;posts
  LEFT JOIN $wpdb-&gt;term_relationships ON($wpdb-&gt;posts.ID = $wpdb-&gt;term_relationships.object_id)
  LEFT JOIN $wpdb-&gt;term_taxonomy ON($wpdb-&gt;term_relationships.term_taxonomy_id = $wpdb-&gt;term_taxonomy.term_taxonomy_id)
  LEFT JOIN $wpdb-&gt;terms ON($wpdb-&gt;term_taxonomy.term_id = $wpdb-&gt;terms.term_id)
  LEFT JOIN $wpdb-&gt;postmeta ON($wpdb-&gt;posts.ID = $wpdb-&gt;postmeta.post_id)
  WHERE $wpdb-&gt;posts.post_type = 'pf_cpt'
  AND $wpdb-&gt;posts.post_status = 'publish'
  AND $wpdb-&gt;term_taxonomy.taxonomy = 'project-type'
  AND $wpdb-&gt;terms.slug = 'website'
  AND $wpdb-&gt;postmeta.meta_key = 'year'
  ORDER BY $wpdb-&gt;postmeta.meta_value DESC";
  // see value 'project-type' and value 'website'
  // feel free to define any value from your taxonomies, for grouping

  $result = $wpdb-&gt;get_results("$querystr");
  foreach($result as $post){

  setup_postdata($post); // remember this line, it needs cause our "foreach" statement

  ?&gt;

&lt;?php the_title( '&lt;h2 class="entry-title"&gt;', '&lt;/h2&gt;' ); ?&gt;

&lt;?php 

  $custom = get_post_custom($post-&gt;ID);
  $website_url = $custom["custom_url"][0];
  if($custom != "" ) {

  ?&gt;

&lt;br&gt;&lt;a href="&lt;?php echo $website_url; ?&gt;"&gt;&lt;?php the_post_thumbnail(); ?&gt; &lt;/a&gt;

&lt;?php

  } else { the_post_thumbnail(); }

  ?&gt;

 &lt;div class="entry-content"&gt;
&lt;?php the_content(); ?&gt;

&lt;?php

  // define something
  $taxo = "";

  // Variables to store each of our possible taxonomy lists
  // This one checks for an Year classification

  $project_type_list = get_the_term_list( $post-&gt;ID, 'project-type', '&lt;strong&gt;Project Type(s):&lt;/strong&gt; ', ', ', '' );
  $commercial_type_list = get_the_term_list( $post-&gt;ID, 'charge-type', '&lt;strong&gt;Type(s):&lt;/strong&gt; ', ', ', '' );
  $client_list = get_the_term_list( $post-&gt;ID, 'client', '&lt;strong&gt;Client(s):&lt;/strong&gt; ', ', ', '' );
  $task = get_the_term_list( $post-&gt;ID, 'tasks', '&lt;strong&gt;Task(s):&lt;/strong&gt; ', ', ', '' );

  // if it's not empty, return value of each type
  // define project type value
  if ( '' != $project_type_list ) { $taxo .= "$project_type_list&lt;br /&gt;\n"; }

  // define commercials or non commercials project type
  if ( '' != $commercial_type_list ) { $taxo .= "$commercial_type_list&lt;br /&gt;\n"; }

  // define client list value
  if ( '' != $client_list ) { $taxo .= "$client_list&lt;br /&gt;\n"; }

  // define task value
  if ( '' != $task ) { $taxo .= "$task&lt;br /&gt;\n"; }

  // Output taxonomy information if there was any
  if ( $taxo != '' ) {

  ?&gt;

&lt;div class="entry-utility"&gt;

&lt;?php 

  if ( get_post_meta($post-&gt;ID, 'year', true) ) :
    $date = get_post_meta($post-&gt;ID, 'year', true);
    $dateTime = new DateTime($date);
    $formatted_date=date_format ( $dateTime, 'F Y' );
        echo 'Date: '.$formatted_date.'&lt;br&gt;';
  endif; ?&gt;

&lt;?php

  echo $taxo;

  ?&gt;

&lt;/div&gt;&lt;br&gt;

&lt;?php

  } // endif

  ?&gt;

&lt;/div&gt;

&lt;?php

  }

?&gt;

&lt;/div&gt;

&lt;?php get_footer(); ?&gt;</pre>
<p>And you’ll get a display which looks like below</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-6306" title="wordpress custom post" src="http://aext.net/wp-contents/uploads/2010/07/cpt-5.jpg" alt="wordpress custom post" width="500" height="800" /></div>
<p>But after you noticed it, how’s it so the value from each custom taxonomies isn’t be formed as a link (url)..? just change the codes above become codes below</p>
<pre>$project_type_list = strip_tags( get_the_term_list( $post-&gt;ID, 'project-type', 'Project Type(s): ', ', ', '' ) );
$commercial_type_list = strip_tags( get_the_term_list( $post-&gt;ID, 'charge-type', 'Type(s): ', ', ', '' ) );
$client_list = strip_tags( get_the_term_list( $post-&gt;ID, 'client', 'Client(s): ', ', ', '' ) );
$task = strip_tags( get_the_term_list( $post-&gt;ID, 'tasks', 'Task(s): ', ', ', '' ) );</pre>
<p>See that strip_tags( [your_term_list] ); to ignore HTML format. Simple, right? Then it’s done, have fun with your custom post types and custom taxonomies folks!</p>
<h4>Further information about this features:</h4>
<ul>
<li><a href="http://wpengineer.com/impressions-of-custom-post-type/">First Impressions of Custom Post Type</a></li>
<li><a href="http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress">Custom post types in WordPress</a></li>
<li><a href="http://justintadlock.com/archives/2010/06/10/a-refresher-on-custom-taxonomies">A refresher on custom taxonomies</a></li>
<li><a href="http://net.tutsplus.com/tutorials/wordpress/introducing-wordpress-3-custom-taxonomies/">Introducing WordPress 3 Custom Taxonomies</a></li>
<li><a href="http://net.tutsplus.com/tutorials/wordpress/rock-solid-wordpress-3-0-themes-using-custom-post-types/">Rock-Solid WordPress 3.0 Themes using Custom Post Types</a></li>
<li><a href="http://www.vooshthemes.com/blog/wordpress-tip/create-a-professional-portfolio-using-wordpress-3-0-custom-post-types/">Create A Professional Portfolio Using WordPress 3.0 Custom Post Types </a></li>
</ul>
<h3>Conclusion</h3>
<hr />
<p>I think it’s pretty tempting your insight about WordPress 3.0, and what you can do with it furthermore, as a blog machine or as a CMS, that’s up to you. So now what about we’re having share about it, what do you think about WordPress 3.0 and for you that’ve already experienced with it, you may share with us here, I think that’s why sharing considered as caring.. arghh it’s pain to say it.. :p See ya!</p>
<h4>Another References</h4>
<ul>
<li><a href="http://net.tutsplus.com/tutorials/wordpress/10-features-to-look-forward-to-in-wordpress-3-0/">10 Features to Look Forward to in WordPress 3.0</a><br />
WordPress 3.0 is scheduled to be released within the next 30-60 days. There are some great new features coming, including custom post types, a new default theme, and a menu manager. Read on Nettuts to find out what to expect in version three!</li>
<li><a href="http://sixrevisions.com/wordpress/wordpress-3-0-guide/">WordPress 3.0: Ultimate Guide to New Features</a><br />
WordPress 3.0 — the newest major version of WordPress — is one of the most highly-anticipated open source upgrades this year. Good article from Saad Bassi on Six Revisions</li>
<li><a href="http://designm.ag/design/wordpress-3-0/">9 Features We Most Want in WordPress 3.0</a><br />
Messageboards are currently awash with demanding bloggers, listing the new features they most want to see and the plugins they want shifted into core. By this article on DesignM.ag you’ll find the 9 new features that are most in demand.</li>
<li><a href="http://www.wpbeginner.com/news/whats-coming-in-wordpress-3-0-features/">What’s Coming in WordPress 3.0 (Features)</a><br />
Another reference from WpBeginner, just check this out too guys!</li>
<li><a href="http://mashable.com/2010/05/10/new-features-wordpress-3/">WordPress 3.0: The 5 Most Important New Features</a><br />
The list of new features in WordPress 3.0 isn’t very long in comparison to previous releases. However, the changes that are coming will certainly have a significant impact, particularly if you use WordPress as a CMS. Here is a rundown of the most important new features arriving in version 3.0. Mashable will let you know which features of WordPress 3.0 you are most looking forward to.</li>
<li><a href="http://web.appstorm.net/roundups/self-publishing/10-great-new-features-in-wordpress-3-0/">10 Great New Features in WordPress 3.0</a><br />
WordPress is by far the most popular blogging platform available and with over half a million known websites running on the software, it’s no surprise there’s a big news surge when a new version is released. Read more on Web.AppStorm</li>
</ul>
<div class="txtad-cont"></div>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2010/07/wordpress-3-and-what-you-can-do/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Top 15 WordPress Plugins to Make Your Blog Secure</title>
		<link>http://aext.net/2010/05/wordpress-security-plugins/</link>
		<comments>http://aext.net/2010/05/wordpress-security-plugins/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 00:00:44 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Popular]]></category>
		<category><![CDATA[Roundup]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Spam Protection]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://aext.net/?p=5575</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/05/wordpress-security-plugins/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/05/wordpress-security-plugins/" height="61" width="51" /></a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/05/wordpress-security-plugins/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/05/wordpress-security-plugins/" height="61" width="51" /></a></p><p>You think the more secure blog, the more successful blogging job, don&#8217;t you? You can keep your blog secure by installing a bunch of WordPress security plugins. However, instead of activating too many plugins that have the same features, same purposes&#8230; and even some issues because of the conflicts between them, you should consider using only these top plugins that help you to do the job better.</p>
<p><span id="more-5575"></span></p>
<p>Here is the list of <strong>Top 15 WordPress Security Plugins</strong> that have all the features you need. If you got some other plugins that are better, please help us to complete the list by dropping your thought in comment form.</p>
<h3><a href="http://akismet.com/">Askimet</a> and no more other plugin for spam protection</h3>
<hr />
<div class="bigimage"><a href="http://akismet.com/"><img class="aligncenter size-medium wp-image-5754" title="Askimet" src="http://aext.net/wp-contents/uploads/2010/05/Screen-shot-2010-05-29-at-1.16.52-AM-500x284.png" alt="Askimet Spam Protection" width="500" height="284" /></a></div>
<p>Akismet is a wonderful plugin for spam protection, really! It checks your comments against the Akismet web service to see if they look like spam or not and lets you review the spam it catches under your blog&#8217;s &#8220;Comments&#8221; admin screen.</p>
<p>I personally don&#8217;t use any spam prevention plugin but Askimet. Why do you need to install other plugins since you had Askimet. The spam filter of this service is really cool. I&#8217;m facing with <strong>not more than 1 spam</strong> comment a day!</p>
<h3><a href="http://wordpress.org/extend/plugins/askapache-password-protect/">AskApache Password Protect</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/askapache-password-protect/"><img class="aligncenter size-medium wp-image-5728" title="AskApache Password Plugin" src="http://aext.net/wp-contents/uploads/2010/05/Screen-shot-2010-05-28-at-8.17.02-PM-499x233.png" alt="AskApache Password Plugin" width="499" height="233" /></a></div>
<p>With <strong>AskApache Password Protect</strong>, you can set password for your admin dashboard, also with any files folder in your web host without messing with your database. This plugin is specifically designed and regularly updated specifically to stop automated and unskilled attackers attempts to exploit vulnerabilities on your blog resulting in a hacked site.</p>
<h3><a href="http://wordpress.org/extend/plugins/admin-log/">Admin Log</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/admin-log/"><img class="aligncenter size-medium wp-image-5760" title="admin log plugin" src="http://aext.net/wp-contents/uploads/2010/05/admin-log-plugin-500x219.jpg" alt="admin log plugin" width="500" height="219" /></a></div>
<p>I&#8217;m using this plugin to keep tracking all foot prints of users logged in to the blog admin area. This is updated every time a page in the admin area is accessed. Information displayed includes: admin page accessed, user, and time of access. However, this should be filtered better because it&#8217;s keeping some access pages that are unnecessary at all.</p>
<h3><a href="http://wordpress.org/extend/plugins/secure-wordpress/">Secure WordPress</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/secure-wordpress/"><img class="aligncenter size-full wp-image-5732" title="secure wordpress plugin" src="http://aext.net/wp-contents/uploads/2010/05/screenshot-1.png" alt="secure wordpress plugin" width="450" height="459" /></a></div>
<p>It will help to secure WordPress installation by removing miscellaneous items after the installation process which may aid hackers: Remove Error information on login page; adds index.html to plugin directory; removes the wp-version, except in admin area.</p>
<h3><a href="http://lesterchan.net/wordpress/readme/wp-ban.html">WP-Ban</a></h3>
<hr />
<div class="bigimage"><a href="http://lesterchan.net/wordpress/readme/wp-ban.html"><img class="aligncenter size-medium wp-image-5583" title="admin_ban_options_bottom" src="http://aext.net/wp-contents/uploads/2010/05/admin_ban_options_bottom-500x363.png" alt="admin_ban_options_bottom" width="500" height="363" /></a></div>
<p>Ban users by IP, IP Range, host name, user agent and referer url from visiting your WordPress&#8217;s blog. It will display a custom ban message when the banned IP, IP range, host name, user agent or referer url tries to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.</p>
<p><strong style="color: red;">WARNING:</strong><strong> When using the WP-Ban plugin, be very careful when banning certain IP addresses, especially your own. If you accidentally ban your IP address, you won’t be getting back into your blog until you acquire a new IP.</strong></p>
<h3><a href="http://wordpress.org/extend/plugins/limit-login-attempts/">Limit Login Attempts</a> &#8211; <a href="http://wordpress.org/extend/plugins/login-lockdown/">Login LockDown</a> &#8211; <a href="http://wordpress.org/extend/plugins/user-locker/">User Locker</a></h3>
<hr />
<div class="bigimage"><img class="aligncenter size-medium wp-image-5737" title="Limit Login Attempts – Login LockDown – User Locker" src="http://aext.net/wp-contents/uploads/2010/05/wordpress-plugin-login-lockdown-locked-out-copy-500x246.jpg" alt="Limit Login Attempts – Login LockDown – User Locker" width="500" height="246" /></div>
<p>These plugins are very useful for protecting WordPress login page if you combine them into a set of 3.</p>
<p><strong>Limit Login Attempts</strong> will shut down anybody who fails X number of logins from a specific IP address (using auth cookies). It keeps tracking all failed IPs, emails you in the event of a lockout, and is the perfect solution for keeping nosy relatives out of your admin area.. <a href="http://wordpress.org/extend/plugins/limit-login-attempts/">Download</a></p>
<p>&#8212;&#8211;</p>
<p><strong>Login Lockdown</strong> is a great security plugin to prevent some people guessing your password to login to your site. It records the IP address and timestamp of every failed login attempt. This helps to prevent brute force password discovery. <a href="http://wordpress.org/extend/plugins/login-lockdown/">Download</a></p>
<p>&#8212;&#8211;</p>
<p><strong>User Locker</strong> plugin is a great solution to limit the number of invalid logins for specific user. Once the plugin has been installed, it is set by default to lock the user’s account after 5 invalid login attempts. Furthermore, you can manually lock any user via plugin setting. This is a really helpful for some blog, magazine that have more than one user. <a href="http://wordpress.org/extend/plugins/user-locker/">Download</a></p>
<h3><a href="http://semperfiwebdesign.com/plugins/wp-security-scan/">WP Security Scan</a></h3>
<hr />
<div class="bigimage"><a href="http://semperfiwebdesign.com/plugins/wp-security-scan/"><img class="aligncenter size-medium wp-image-5730" title="security-scan" src="http://aext.net/wp-contents/uploads/2010/05/security-scan-500x338.png" alt="security-scan" width="500" height="338" /></a></div>
<p>Nice plugin helps you to scan your WordPress installation for security vulnerabilities and suggests corrective actions: passwords, file permissions, database security, version hiding, WordPress admin protection/security&#8230;</p>
<h3><a href="http://wordpress.org/extend/plugins/admin-ssl-secure-admin/">Admin SSL</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/admin-ssl-secure-admin/"><img class="aligncenter size-medium wp-image-5745" title="Admin SSL" src="http://aext.net/wp-contents/uploads/2010/05/screenshot-1-500x295.jpg" alt="Admin SSL" width="500" height="295" /></a></div>
<p>Secure WordPress login and admin pages for that extra bit of security with <strong>Admin SSL</strong>. This plugin forces SSL on all pages where passwords can be entered so that all information transmitted are encrypted. However, you have to own a SSL certificate before you can do it. If you are not willing to shell out the extra money to buy a private SSL certificate, you can ask your Web host about Shared SSL. Most webhosting provide Shared SSL for all their clients and it is easy to configure.</p>
<h3><a href="http://wordpress.org/extend/plugins/stealth-login/">Stealth Login</a></h3>
<hr />
<p>Stealth Login obfuscates your login page by allowing you to define a custom login page rather than the default wp-login.php. In the event that your password is leaked, the hacker will also have a hard time finding the correct login URL. A good use of this is to prevent any malicious bots from accessing your wp-login.php file and attempting to break in.</p>
<h3><a href="http://austinmatzko.com/wordpress-plugins/wp-db-backup/">WordPress Database Backup</a></h3>
<hr />
<div class="bigimage"><a href="http://austinmatzko.com/wordpress-plugins/wp-db-backup/"><img class="aligncenter size-full wp-image-5748" title="backup_screenshot" src="http://aext.net/wp-contents/uploads/2010/05/backup_screenshot.jpg" alt="backup_screenshot" width="400" height="176" /></a></div>
<p>WordPress database backup creates backups of your core WordPress tables as well as other tables of your choice in the same database. It&#8217;s very simple to use! If you need only the backup feature for your blog database, this is your best choice.</p>
<h3><a href="http://wordpress.org/extend/plugins/wp-dbmanager/">WP-DBManager</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/wp-dbmanager/"><img class="aligncenter size-medium wp-image-5750" title="WP_DBmanager" src="http://aext.net/wp-contents/uploads/2010/05/WP_DBmanager-500x328.jpg" alt="WP_DBmanager" width="500" height="328" /></a></div>
<p>One of the widely used and one of the must have plugin for wordpress is <strong>WP-DBManager</strong>. A very popular plugin for database management. This plugin is not only perfect for doing automated backups, it can also do things like database optimization and the admin pages for it allow you to do the occasional query from within WordPress! You can schedule to back up your database and email it to your email. You can also run mysql query in plugin setting page. With WP-DBManager, you won&#8217;t need any other plugin for your wordpress database, you can find all the needed features in this all in one plugin.</p>
<h3><a href="http://wordpress.org/extend/plugins/tac/">TAC (Theme Authenticity Checker)</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/tac/"><img class="aligncenter size-full wp-image-5752" title="tac" src="http://aext.net/wp-contents/uploads/2010/05/tac.jpg" alt="TAC (Theme Authenticity Checker)" width="500" height="430" /></a></div>
<p>TAC helps you to scan your themes for any unwanted or potentially dangerous code. This is a helpful plugin for you to check any theme you download somewhere to make sure the theme is safe for using.</p>
<h3><a href="http://wordpress.org/extend/plugins/wp-sentry/">WP Sentry</a></h3>
<hr />
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/wp-sentry/"><img class="aligncenter size-medium wp-image-5756" title="wp-sentry" src="http://aext.net/wp-contents/uploads/2010/05/Screen-shot-2010-05-29-at-1.30.19-AM-500x350.png" alt="wp-sentry" width="500" height="350" /></a></div>
<p>This is a simple plugin just for privacy reason. WP Sentry restricts access to the post for specific users, groups&#8230;and a little more granular access controls.</p>
<h3>Extended Reading:</h3>
<hr />
<p>There are some helpful articles and tutorials helps you to secure your WordPress better.</p>
<ul>
<li><a href="http://www.noupe.com/how-tos/wordpress-security-tips-and-hacks.html">WordPress Security Tips and Hacks</a></li>
<li><a href="http://www.problogdesign.com/wordpress/11-best-ways-to-improve-wordpress-security/">11 Best Ways To Improve WordPress Security</a></li>
<li><a href="http://codex.wordpress.org/Hardening_WordPress">Hardening WordPress</a></li>
<li><a href="http://sixrevisions.com/wordpress/12-essential-security-tips-and-hacks-for-wordpress/">12 Essential Security Tips and Hacks for WordPress</a></li>
<li><a href="http://www.dailyblogtips.com/5-plugins-to-keep-wordpress-secure/">5 Plugins to Keep WordPress Secure</a></li>
<li><a href="http://wordpress.org/development/2009/09/keep-wordpress-secure/">How to Keep WordPress Secure</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2010/05/wordpress-security-plugins/feed/</wfw:commentRss>
		<slash:comments>66</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Highlight Current Category Menu Item for WordPress Single Post</title>
		<link>http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/</link>
		<comments>http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/#comments</comments>
		<pubDate>Wed, 26 May 2010 16:23:01 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Highlight]]></category>
		<category><![CDATA[WordPress Customization]]></category>
		<category><![CDATA[WordPress Hack]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://aext.net/?p=5706</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/" height="61" width="51" /></a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/" height="61" width="51" /></a></p><p>From version 2.0, WordPress automatically added highlighting categories feature by adding <code>current-cat</code> class name in the category menu item when viewing that category. However, WordPress forgot to do the same on a single post viewing. Here are some quick tips help us to dynamically highlight the category menu item(s) when viewing a single post which belongs to that category(ies).</p>
<p><span id="more-5706"></span></p>
<h3>Using plugin</h3>
<hr />
<p><strong>1. <a href="http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category">WordPress Plugin: Show Active Category</a></strong><br />
This is a very easy way to do category highlighting on WordPress single post. All you need is downloading this <a href="http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category">WordPress Plugin: Show Active Category</a> and activate it:</p>
<ol>
<li>Download this plugin, un-pack it, and upload it to WordPress plugins folder.</li>
<li>Activate the plugin</li>
<li>You will notice the menu in WordPress backend: <strong>Show Active Category (while browsing a post)</strong></li>
<li>Add this class name to your css file: <code>.active_category{ ... }</code></li>
</ol>
<p><em>Thanks <a href="http://www.designshard.com/video-tutorials/highlight-wordpress-category-when-on-a-single-post-tutorial/">Max</a> for this tip, and <a href="http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category">Screenshine</a> for this helpful plugin.</em></p>
<p><strong>2. <a href="http://kahi.cz/wordpress/highlight-used-categories-plugin/">Kahi’s Highlight Used Categories</a></strong></p>
<p>This plugin works in the same way with that one above. Furthermore, it allows to highlight categories when you&#8217;re browsing a post (or even a page) filed under <strong>some categories</strong>, these are (in the category list) marked by adding specific class.</p>
<p>Classes <code>used-cat</code> and eventually <code>used-cat-parent</code> are added to the particular list (list-items) in each category-list (<code>wp_list_category()</code>).</p>
<p><em>Thanks <a href="http://kahi.cz/wordpress/highlight-used-categories-plugin/">Kahi</a> for this plugin.</em></p>
<h3>Code Customization</h3>
<hr />
<p>If you are friendly with WordPress code, you can easily to do highlighting by overriding the <code>wp_list_categories()</code> function. Copy and paste these code to your functions.php file:</p>
<pre class="php">function sgr_show_current_cat_on_single($output) {
     global $post;
     if( is_single() ) {
          $categories = wp_get_post_categories($post-&gt;ID);
          foreach( $categories as $catid ) {
	  $cat = get_category($catid);

	       // Find cat-item-ID in the string
	       if(preg_match('#cat-item-' . $cat-&gt;cat_ID . '#', $output)) {
	            $output = str_replace('cat-item-'.$cat-&gt;cat_ID, 'cat-item-'.$cat-&gt;cat_ID . ' current-cat', $output);
	       }
          }

     }
     return $output;
}

add_filter('wp_list_categories', 'sgr_show_current_cat_on_single');</pre>
<p>Then use css to style it as we usually do with default highlighting current category when viewing it.</p>
<pre class="css">li.current-cat { ...put your styles here...}</pre>
<p><em>Thanks <a href="http://www.studiograsshopper.ch/code-snippets/dynamic-category-menu-highlighting-for-single-posts/">Ade</a> for such awesome stuff!</em></p>
<div class="txtad-cont"></div>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2010/05/quick-tip-highlight-current-category-menu-item-for-wordpress-single-post/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Display Timeago For WordPress If Less Than 24 Hours</title>
		<link>http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/</link>
		<comments>http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 08:32:32 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress Hack]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://aext.net/?p=5098</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/" height="61" width="51" /></a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/" height="61" width="51" /></a></p><p>This small code snippet will help you to display the time ago for WordPress post if your post was published less than 24 hours ago. You can find some code published on other blogs that used for displaying the time different from now to the time when the post published like: &#8220;<em>minutes ago</em>&#8220;, &#8220;<em>hours ago</em>&#8220;, &#8220;<em>days ago</em>&#8220;&#8230; This code will display only when the different time is less than 24 hours.</p>
<p><span id="more-5098"></span></p>
<p>The completed code you need is below. Copy it and paste it to the functions.php file and you are ready to go. No more messing needed.</p>
<pre class="php"><span style="color: #003369;">add_filter</span>(<span style="color: #eb7300;">'the_time'</span>, <span style="color: #eb7300;">'timeago'</span>);

<span style="color: #881350;">function</span> <span style="color: #003369;">timeago</span>()
{
    <span style="color: #881350;">global</span> <span style="color: #825900;">$post</span>;

    <span style="color: #825900;">$date</span> = <span style="color: #825900;">$post</span>-&gt;post_date;

    <span style="color: #825900;">$time</span> = <span style="color: #003369;">get_post_time</span>(<span style="color: #eb7300;">'G'</span>, <span style="color: #881350;">true</span>, <span style="color: #825900;">$post</span>);

    <span style="color: #825900;">$time_diff</span> = <span style="color: #661aa9;">time</span>() - <span style="color: #825900;">$time</span>;

    <span style="color: #881350;">if</span>( <span style="color: #825900;">$time_diff</span> &gt; <span style="color: #0000ff;">0</span> &amp;&amp; <span style="color: #825900;">$time_diff</span> &lt; <span style="color: #0000ff;">24</span>*<span style="color: #0000ff;">60</span>*<span style="color: #0000ff;">60</span> )
        <span style="color: #825900;">$display</span> = <span style="color: #661aa9;">sprintf</span>( <span style="color: #003369;">__</span>(<span style="color: #eb7300;">'%s ago'</span>), <span style="color: #003369;">human_time_diff</span>( <span style="color: #825900;">$time</span> ) );
    <span style="color: #881350;">else</span>
        <span style="color: #825900;">$display</span> = <span style="color: #661aa9;">date</span>(<span style="color: #003369;">get_option</span>(<span style="color: #eb7300;">'date_format'</span>), <span style="color: #661aa9;">strtotime</span>(<span style="color: #825900;">$date</span>) );

    <span style="color: #881350;">return</span> <span style="color: #825900;">$display</span>;
}</pre>
<p>This code will hook into the <span style="color: #003369; font-family: monospace;">the_time()</span> function. It will do the filter which modify the return value of <span style="color: #003369; font-family: monospace;">the_time()</span> before sending it to the browser screen.</p>
<p>The output:</p>
<pre style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;">Published:  5 minutes ago
Published:  12 hours ago

Or

Published:  March 14, 2010 //Depends on your date format setting</pre>
<p><strong>Don&#8217;t forget to subscribe to <a href="http://feeds.feedburner.com/aextnet">our rss feed</a> to receive full code snippets and articles via feed reader or follow us on <a href="http://twitter.com/aextnet">twitter</a>.</strong></p>
<div class="txtad-cont"></div>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2010/04/display-timeago-for-wordpress-if-less-than-24-hours/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Highlight Author Comments in WordPress &#8211; The Right Way</title>
		<link>http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/</link>
		<comments>http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 08:35:06 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress Comment]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://aext.net/?p=4116</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/" height="61" width="51" /></a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/" height="61" width="51" /></a></p><p>This is an old topic that has been covered by many other blogs and magazines&#8211;to the extreme, but it needs updating. I&#8217;m talking about how to highlight comments posted by the author of the article. The tutorials out there only work for one user ID for the whole site. That is a big mistake, as it didn&#8217;t allow for scalability &#8212; it only works when you are blogging on your own (and with only one account). We have given it an overhaul, and updated the code.</p>
<p><span id="more-4116"></span></p>
<p>First, we should take a look at the code from the tutorials which highlight the comment based on the user ID:</p>
<pre class="html">
.authcomment {
&nbsp;&nbsp;&nbsp;&nbsp;background-color: #B3FFCC !important;
}

&lt;li class=&rdquo;&lt;?php 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (1 == $comment-&gt;user_id)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$oddcomment = &ldquo;authcomment&rdquo;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $oddcomment;?&gt;&rdquo; id=&rdquo;comment&hellip;&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/li&gt;
</pre>
<p>To make it work on sites with multiple writers, we need to to get the ID of the author, then check if the ID of the person posting this comment is the same. If it is, we need to make it stand out. We still use the CSS class for post author comment.</p>
<pre class="css">
.authcomment {
&nbsp;&nbsp;&nbsp;&nbsp;background-color: #B3FFCC !important;
}
</pre>
<p>Now, we change the original code at the start of the article with this:</p>
<pre class="html">
&lt;li class=&quot;comment-container
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&lt;?php
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$authID=get_the_author_meta('ID');
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($authID == $comment-&gt;user_id)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$oddcomment = 'authcomment';
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $oddcomment;
&nbsp;&nbsp;&nbsp;&nbsp;?&gt;&quot; &nbsp;id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/li&gt;
</pre>
<p>And, that&#8217;s it! We hope that you find it useful! </p>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2010/03/highlight-author-comments-wordpress-right-way/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
	</channel>
</rss>

