Category with the same slug

i’ve found this code, i think it is a good idea: add_filter( ‘post_link’, ‘remove_parent_cats_from_link’, 10, 3 ); function remove_parent_cats_from_link( $permalink, $post, $leavename ) { $cats = get_the_category( $post->ID ); if ( $cats ) { // Make sure we use the same start cat as the permalink generator usort( $cats, ‘_usort_terms_by_ID’ ); // order by ID … Read more

IIS 7 Rewrite with parent categories

Finally figured out the answer. It is a mix of multiple different solutions I have found online but here it is! First step is to add this to your functions.php add_rewrite_rule( ‘products/([^/]+)/([^/]+)/?’, ‘index.php?pmfg_product_categories=$matches[1]&products=$matches[2]’, ‘top’ ); Secondly you will need this in your web.config <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules><rule name=”WordPress Rule” stopProcessing=”true”><match url=”.*”/><conditions><add input=”{REQUEST_FILENAME}” … Read more

All URLs are having ‘/blog/’ appended to them.

Pages don’t have a base in the URL unless you are associating the page with a parent in the “Page Attributes” section. Example: Page 1 – “Contact Us” (no parent) Page 2 – “Directions” (Contact Us as parent) Page 1 URL – domain.com/contact-us Page 2 URL – domain.com/contact-us/directions Also, are you sure you’re dealing with … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)