Changing permalink of custom category

It seems that a few people create a custom function to filter in custom taxonomy names into post_type_link. This post provides a simple approach to problem: Mixing custom post type and taxonomy rewrite structures?

Link categories to last post

This could be done with a ne walker class class Childcat2LastPost extends Walker_Category { function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { if ( 0 != $category->category_parent ) { $args = array( ‘cat’ => $category->term_id, ‘orderby’ => ‘post_date’, ‘order’ => ‘DESC’, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘post__not_in’ … Read more

Update permalinks after domain change

Option A: Here’s a Quick Way to Search and Replace Your WordPress Database Option B: Export your database using phpmyadmin and open in a text editor such as (Notepad++), and use search/replace to find old domain and replace with new domain. MAKE SURE YOU BACKUP YOUR DATABASE BEFORE TAKING ANY ACTION

get_attachment_link() adds a hashtag to URL

As mentioned in the comments above, the problem is with the _s theme. The specific function causing the problem is _s_enhanced_image_navigation() in inc/extras.php. The problem can be resolved by changing the first if statement in the function to this: if ( is_admin() || ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) ) return $url;