Wordpress

WordPress permalinks

Berbeda dengan wordpress yang kita install di host sendiri dengan wordpress.com free web blog.

WordPress free tidak menyediakan feature untuk merubah permalinks, jadi harus agak “dioprek” sedikit dengan edit file functions.php

1
2
3
4
5
6
add_action( 'init', 'custom_page_rules' );
function custom_page_rules() {
    global $wp_rewrite;
    $wp_rewrite->page_structure = $wp_rewrite->root . 'page/%pagename%.html';
}

Sumber : Wpforce

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s