Changing Permalinks for Category Pages Only

is rare, but it would have to default as you run you want. This forces the operation that you need function my_category_link( $termlink, $term_id ) { $term = get_term( $term_id, ‘category’ ); $ancestors = get_ancestors($term_id, ‘category’); if( !count($ancestors) ) return $termlink; $hierarchical_slugs = array(); foreach ( (array)$ancestors as $ancestor ) { $ancestor_term = get_term($ancestor, ‘category’); … Read more

Custom WP permalink structure

The simplest answer I can think of is to use what’s already built in: categories. If you know what stores you’re going to have coupons for, create a category for each of them and assign that category to the post. You can then use a permalink structure like /store/%category%/%postname%.

My posts section for logged in user

You don’t need to put your code in your theme functions. This needs to be a custom page template. Learn about page templates here: http://codex.wordpress.org/Page_Templates Your code is custom loop so you need to also learn about loops and then using WP_Query so next stop will be here: http://codex.wordpress.org/The_Loop Then read this page: http://codex.wordpress.org/Class_Reference/WP_Query After … Read more

Permalink Issue – Funny & Weird

The /blog/ prefix exists to avoid URL collisions with sub directory sites in a network. See ticket #12002. The most simple solution is to use a sub-domain setup instead. Or go to wp-admin/network/site-settings.php?id=1 and change the permalink there. This doesn’t always work, but mostly it does.

Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?

WP has global $is_iis7 variable, which is filled via following code: $is_iis7 = $is_IIS && intval( substr( $_SERVER[‘SERVER_SOFTWARE’], strpos( $_SERVER[‘SERVER_SOFTWARE’], ‘Microsoft-IIS/’ ) + 14 ) ) >= 7; If detection is not working correctly likely something is going wrong with this line, such as server vars not being filled with the info expected.