Articles of permalinks

Remove some rewrite rules in wordpress

It seems that the add_rewrite_rule works only if the permalink is set to non empty value in wp-admin/setting page. Isn’t it? Then once I set that value to /item/%post_id%, I got the rewrite rules like this through debugging:http://imgur.com/a/08nAU. There are too many rules not necessary in my case, is it possible to remove that?

How to add a base/front slug/url to specific post types?

I currently have: mywebsite.com/custom-post-type-1/postname mywebsite.com/custom-post-type-2/postname I want to achieve: mywebsite.com/my-base-slug/custom-post-type-1/postname mywebsite.com/my-base-slug/custom-post-type-2/postname I do not want “my-base-slug” to appear for anything other than those specified post-types. Is that possible and how?

.html end of URl affected to SEO?

I want to convert PHP website into WordPress. So, I want to know there are a .html at end of the URL when WordPress permalink is not ended with .html. So, is it affected to SEO?

Woocommerce product permalink not working

I have added the product permalink in Settings ->Permalinks to Custom Base /shop/%product_cat% it works fine. But if I updated it to /%product_cat% products page working fine but website pages and posts are redirecting to 404 page. Any idea?

Custom post type permalink is doesn't show in admin

I have problem with custom post type – permalink is doesn’t show: Post type is published, but I can’t it show on website. I tried change permalink structure to ?p=123, but it still doesn’t work. I tried change ‘rewrite’ attribute in code to false, but no difference. Some ideas where can be problem? Here is […]

Post type Permalink

I create a custom post type: $rewrite = array( ‘slug’ => ‘%categories%’, ‘with_front’ => false, ‘pages’ => true, ‘feeds’ => true, ); $args = array( // …Other options ‘taxonomies’ => array( ‘categories’ ), ‘hierarchical’ => false, ‘public’ => true, ‘has_archive’ => ‘applications’, ‘publicly_queryable’ => true, ‘rewrite’ => $rewrite, // Other options… ); register_post_type( ‘applications’, $args […]

404 on category.php pagination

My blog post page : mysite.com/blog => Work Blog page pagination : mysite.com/blog/page/2 => Work A category post url : mysite.com/blog/cat => Work A post url : mysite.com/blog/cat/postname => Work A category post pagination url : mysite.com/blog/cat/page/2 => 404 🙁 Permalink structure : /blog/%category%/%postname%/ Remove category base with Yoast: ok Category.php : <?php get_header(); ?> […]

Update permalinks when new category added to custom post type taxonomy

Note: this question also appears on https://stackoverflow.com/questions/44060613/update-permalinks-when-new-category-added-to-custom-post-type-taxonomy (but is not getting much love). Have created a collection of Custom Post Types (CPT) for a WordPress theme I am working on (along with their own taxonomies and tags). For the purpose of this question I will just focus on the ‘projects’ CPT. When a new project […]

Date-based permalinks for Custom Post Type, and custom taxonomy permalinks

In my theme (a child of Twenty Sixteen) I’ve created a new Custom Post Type, pg_review. I’ve associated two custom taxonomies with it, pg_genres (hierarchical categories), and pg_authors (like tags). Everything is working fine except permalinks… Despite trying to understand and adapt various examples I’m going round in circles. I would like these permalinks to […]

Why is my RSS feed not working?

I have the following blog on a WordPress site. The RSS feed does not contain a list of the posts. Any thoughts on what is going on? UPDATE I noticed that my blog index page was located at http://www.talentheromedia.com/the-recruiting-rundown-blog/ whereas the blog posts path began with http://www.talentheromedia.com/the-recruiting-rundown/ (notice the missing “-blog”). I changed the blog […]