Custom Structure permalinks error 404

Mehdi, it’s common problem, as Apache server is not set by this way by default. Your problem can be solved with some very simple steps (simply quoting Samuel B): If you want to use permalinks, you will need to make a change inside another file: apache > Conf and find the file httpd.conf. Open that … Read more

Permalinks with custom taxonomies and regular categories

Assuming 2 posts: “News about Stephen King” | Category: “News” | “Author”: “Stephen King” “Review for Under the Dome” | Category: “Reviews” | “Book”: “Under the Dome” where “Book” and “Author” are custom taxonomy. If I understand well you want that the link for first will be: /author/stephen-king/news/news-about-stephen-king and the url for the second: /book/under-the-dome/reviews/review-for-under-the-dome … Read more

How to translate “Permanent link to” text

one possible way: <?php $link_text = sprintf( __( ‘Permanent link to %s’, ‘youthemetextdomain’), get_the_title() ); ?> <h3><a href=”https://wordpress.stackexchange.com/questions/128312/<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>” ><?php echo $link_text; ?></a></h3> get_the_title() returns the title instead of displaying it. The double-underscore function is how WordPress allows strings to be extracted from a theme or plugin for translation.

Improve Custom Post Permalink Structure

you can use and manage your permalink for custom post type. Custom Post Type Permalinks add_action(‘init’, ‘my_rewrite’); function my_rewrite() { global $wp_rewrite; $wp_rewrite->add_permastruct(‘typename’, ‘typename/%year%/%postname%/’, true, 1); add_rewrite_rule(‘typename/([0-9]{4})/(.+)/?$’, ‘index.php?typename=$matches[2]’, ‘top’); $wp_rewrite->flush_rules(); // !!! }

How to replace permalinks

It sounds like you have not properly updated the “WordPress Address” and “Site Address” at wp-admin -> Settings -> General, or you have defined WP_SITEURL and WP_HOME in wp-config.php and did not adjust the value when the site was moved. I can’t comment on whether the .htaccess file is correct, though I can say that … Read more