single.php being ignored, going straight to attachment.php

OK, well, I’ve put the search for a proper answer on hold and instead cobbled together a ‘for now’ solution. First, in the referring page that is linking to the individual Post page, I’ve added this: $theid = $post->ID; echo “<li><a href=””; the_permalink(); echo “?id=” . $theid; echo “”>”; echo “blah”; echo “</a>”; So, on … Read more

changing permalink gives 404 error for old links

Well, if your /%postname%/ part stays the same, .htaccess redirection can help you pointing old urls to the new ones like this: RewriteEngine On RewriteRule ^$ /my-articles [R=301,L] Put this into your .htaccess file and it should redirect http://your.tld/my-article to http://your.tld/my-articles/my-article. Beware that this will redirect everything, not only some post types or sth. like … Read more

permalink to single page

It was pretty simple. after going through the wordpress codex, just had to change the second line on single.php $categorySlugName = single_cat_title(true); TO $cateogrySlugName = get_category_by_slug($slug);

Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off

you can remove this functionality by adding this code in a plugin or theme remove_action( ‘template_redirect’, ‘wp_redirect_admin_locations’, 1000 ); This will remove all of dashboar, login, admin so if you will want some of them to still be there you will have to write your own replacement function to wp_redirect_admin_locations and hook it after you … Read more