Linked Questions

6
votes
2answers
7k views

How to remove /blog/ prefix for custom post types in permalinks?

I have a client that used to have a static website and a blog powered from WordPress under the /blog subdirectory. Now he decided to move everything into WordPress so that he can also create and edit ...
2
votes
3answers
5k views

Remove Slug from Custom Post Type results in 404

I am working on a plugin that creates lists. After creating a list, I wanted to remove the slug from the url Post type: $rewrite = [ 'slug' => 'single-link', 'with_front' =&...
0
votes
2answers
4k views

Dynamic URL and pass the data to an iframe

I have a WordPress marketing site (www.example.com) and a backend app site (app.example.com). What I am trying to do is this: if some body goes to the URL: www.example.com/profile/<<profileId&...
0
votes
1answer
2k views

Best way to redirect taxonomy terms to pages

I have been wondering what would be the best way to redirect taxonomy terms to pages in Wordpress. For instance - let us assume we have a taxonomy called 'product type' for a CPT called 'products' ...
3
votes
1answer
568 views

Remove CPT slug from URL

This question has been asked so many times, and i have viewed every answer in this meta, and outside. Still none are functioning in Wordpress 4.9.5 (latest version). The enhancement asked 3 years ago ...
4
votes
1answer
373 views

Custom post type by ID in root folder

i have a custom post type project the url that worked out of the box was: www.myapp.com/project/POST-ID and www.myapp.com/project/POST-SLUG now my client needs the url be available in the ...
0
votes
0answers
447 views

Remove wp directory and slug for custom post type from the URLs

I see there is an answer here for slugs Remove slug from custom post type post URLs but I would also want to remove the directory from the url. Because my custom post type has under 10 articles I ...
0
votes
1answer
263 views

Remove POST_TYPE from custom post type permalink

I have a post type named services with the following permalink DOMAIN/services/investing/ (Single Page Permalink). I want the permalink to be changed like DOMAIN/investing/. I don't want the ...
0
votes
1answer
168 views

How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially

My site uses a plugin Easy Digital Downloads, which creates products that are of url structure, sitename/downloads/{Product} I want to change them to sitename/{product} For example, https://milyin....
1
vote
1answer
129 views

Custom taxonomy returns 404

I'm getting a 404 page when I visit my custom taxonomy page. Custom taxonomy is called 'manufacturer'. I also have a cpt called 'product'. EDIT 1: It has something to do with the cpt rewrite. If I ...
1
vote
0answers
93 views

Removing custom post type slug from URL

I want to remove custom post type slug from URL and for this I have used this solution Removing slug from custom post type URL It is working fine but I also want to add category with custom post type ...
1
vote
1answer
67 views

How can I update the permalink everywhere for a custom post type?

I'm trying to separate out my marketing landing pages (squeeze pages) into separate post types to make organizing them easier as well as to make it easier to interact with some of my plugins. I have ...
0
votes
1answer
41 views

Make custom post available under main domain directly?

i have a custom post type called project. The shortlinks are all www.myapp.com/project/project-slug i want to change that to www.myapp.com/project-slug someone knows what I have to change in, i ...
1
vote
1answer
46 views

Remove CPT slug from URL WordPress

I have created custom post type with the slug (example: loan-officer). I want to remove CPT slug from the URL. I have used below code, I have seen so many threads like this, still, nothing is working. ...