Customize category permalinks
Settings > Permalinks > Custom structure blog/%category%/%postname%/ This works for me, it returns: example.com/blog/category/post-name
Settings > Permalinks > Custom structure blog/%category%/%postname%/ This works for me, it returns: example.com/blog/category/post-name
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
It was a cacheing plug-in (W3TotalCache) installed on the secondary site which prevented it from updating to the new url settings and displaying correctly. I had to completely delete the plug-in and all related files to enable the site again.
Permalink broken for pages after adding rewrite rule
Select page/template from the permalink url
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%.
How to maintain WordPress permalink structure with custom content with URL parameters?
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
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.
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.