How to remove index.php from a tag or archive page URL in the root blog?
try to flush your permalink structure that might be the issue
try to flush your permalink structure that might be the issue
Answering my own question here: Is it really as easy as including this within a pre_get_posts filter? $query->set(‘category__not_in’, $term_id);
Used Custom permalink plugin and it worked.
By default, the category with lowest ID is used. If you want control over what the category is, you can try the Hikari Category Permalink plugin, which allows you to choose which post category is used for the permalink. http://wordpress.org/extend/plugins/hikari-category-permalink/
Don’t link to attachment pages anywhere on your site and it won’t matter what permalink they have. Search engines only see what you make public. BTW another thing you can try is to upload only from within the post/page edit screen. That way attachments take up the parent post/page permalink. Sort of like example.com/post-name/attachment-name.
By setting your permalinks to %category%/%postname%, you are setting the permalinks only for your posts and pages. Below the posts and pages permalinks option is another one for your categories. Just set your categories slug to . and it will just be the category name. Here’s a visual example:
You need to be using get_sub_field(), not the_sub_field() to set $company. the_sub_field() has no return, it just echos the value, whereas get_sub_field() returns the value (but does not echo it).
You can use the rewrite parameter of $args dynamically. Because the post type is registered every time wordpress loads (not just the first time register_post_type() loads), you can set any of the $args dynamically so long as the $post_type slug stays the same. See the codex documentation on register_post_type() for a list of the arguments … Read more
Try checking what your front page is set to in Settings > Reading. It should either have the your latest posts option selected, or the static page option selected and the front page set to a valid page. Edit: Wait… the http://www.walkerpoolenixon.com/wordpress url you provided doesn’t exist! Maybe you mean http://www.walkerpoolenixon.com/?
$url = parse_url( $your_url ); $query = $url[‘query’]; $args_arr = array(); parse_str( $query, $args_arr ); if( isset( $args_arr[‘param’] ) ) { $query_string = $args_arr[‘param’]; $query_string .= ‘,value2’; } else { $query_string = ‘value2’; } add_query_arg( ‘param’, $query_string ); That’s completely untested, but you get the concept. Basically, wordpress is gonna want to replace what you … Read more