A few lowercase words separated by dashes, describing a post and usually derived from the post title to create a user-friendly (that is readable and without confusing characters) permalink. Post slug substitutes the `%posttitle%` placeholder in a custom permalink structure. Post slug should not be ...

learn more… | top users | synonyms

1
vote
1answer
22 views

Get posts with at least one category in common with current post?

In single.php : I want to get all posts with at least one category in common with the current post. I tried reading through the wordpress codex documentation but I found it rather confusing (I'm ...
1
vote
1answer
21 views

Change post slug but keep old one

I have thousands of posts on my site which are created automatically. Some of them have duplicated titles. I'd like to add some keywords to their slugs, so URLs like domain.com/post-title/ ...
0
votes
1answer
16 views

wp_update_term not creating new unique slug

I want the slug to be recreated every time the term name is updated so it accurately reflects the name. wp_update_term(10, 'artists', array('name' => 'my new name')); The documentation ...
1
vote
1answer
25 views

Removing the redirect after changing a page's slug

On one of my pages I changed the slug to form a different URL. E.g. Old: http://example.com/old-slug New: http://example.com/new-slug WordPress has done it's thing of redirecting ...
0
votes
1answer
35 views

Using page slug in wp_query

I'm currently in the process of building out a site for a legal firm that's a client of ours. We have a two custom post types, attorney's and cases, that we need to link together in various areas ...
0
votes
0answers
18 views

Why does post-slug not get saved for drafts?

I am trying to get the value of the 'new-post-slug' (the bit that you can edit to customize your slug for a post, but bizarrely doesn't have a 'name' attribute as you'd expect a form field to have ... ...
0
votes
0answers
5 views

Image URL Recently became Image Name and Took Page URL of Same Name

With a recent update to either wordpress, my theme or the Yoast plugin, we realized that any image with the same name as a page on our site has taken over the URL of the page. When we build out the ...
0
votes
1answer
22 views

403 forbidden on one page only

I can't access http://www.plantea.com.hr/biljke/ The only error i get is Forbidden You don't have permission to access /biljke/ on this server. This is regular hierarchical category for post. I ...
0
votes
0answers
20 views

Best way to remove slug from custom type?

I need to remove a certain slug from a custom type item in Wordpress. Just now my URLs are like this: http://example.com/item/random and I want them like this: http://example.com/random I have ...
1
vote
1answer
30 views

How do I change attachment slug from name to id

I need to change the slug of the attachment post. Currently, it is showing attachment name , I want it to be replaced by id of attachment. Edit : Thanks to suggestion by TheDeadMedic, I am now ...
1
vote
2answers
23 views

Can I have two child pages of different parents with the same name?

I have two pages - new.hillsong.com/australia/sisterhood - new.hillsong.com/hills/sisterhood Both pages are displaying the content for the /hills/sisterhood site but they are different pages with ...
0
votes
2answers
31 views

Custom templates vs page-slug

I've currently been using the slug to set the page template, using the normal hierarchy For example, if I wanted to change the page template for http://www.example.com/about-us, I would edit ...
0
votes
1answer
27 views

International characters in slugs to redirect to

I would like to add special Hungarian characters to slug. Also in the slug of the post, and in taxonomy. . Eg "kér", "ács" etc. This slug then applied also in the URL. Is this possible?
0
votes
0answers
31 views

Change order custom taxonomy

I've created a custom taxonomy BH Job Regions . Now I would like to change the order of the terms in my taxonomy list. Is there a plugin or so that I can do this in my backend? Drag the terms in ...
4
votes
1answer
103 views

Combining Multiple Taxonomies in one URL

I'm creating a complex site with a product catalog with two custom taxonomies. They are Brands and Types. Brands - Canon - Toshiba - HP Types - Printers - Scanners - Multifunction I need a page ...
0
votes
0answers
19 views

Show only one of the categories of a post in the breadcrumb?

How does wordpress choose which category to display in the permalink if the post has multiple categories? I'm trying to display only a single category which wordpress included in the permalink ...
0
votes
0answers
20 views

Get custom post type slugs in javascript in header

I am using the following javascript to show and hide various divs on hover: <script type="text/javascript" language="JavaScript"> function HideContent(d) { ...
0
votes
0answers
19 views

How to change comment-page-1#comment-25 to any string?

How can we change the slug "comment-page-1#comment-25" to somthing like review-page-1#review-25
4
votes
3answers
112 views

Stop WordPress from reserving slugs for media items?

I am experiencing some odd behavior, that apparently happens "out of the box" with WordPress. If I upload a file through the media manager called: services.jpg; then go try to create a page with the ...
0
votes
0answers
32 views

Blog post URL redirects to a Page URL who's slug is a prefix of the post slug.

I have a page with slug 'what', and a blog post with a slug which begins with 'what' (ie. 'what-is-this-blog-about'). For some reason when navigating directly to the blog post URL the user is ...
0
votes
0answers
10 views

wp_update_term updating slug despite declaring it in the arguments

I am using wp_update_term to update term. Term data before update: Array ( [term_id] => 174 [name] => Hello Casino3 [slug] => hello-casino [term_group] => 0 ...
0
votes
0answers
38 views

How to disable special character sanitizing for slugs

We are trying to track specific blog posts that are shared on social media sites and tech blogs. I selected Google Analytics for this and using Google UTM URL builder, I created a custom campaign ...
2
votes
0answers
50 views

Rewrite rule page url with category

I have enabled the category box for pages with this: // Add to the admin_init hook of your theme functions.php file add_action( 'admin_init', 'page_categories' ); function page_categories() { // ...
0
votes
0answers
85 views

Uppercase vs. Lowercase page slugs

We are migrating a site to WordPress from another platform. An issue came up with the URLs--some are uppercase, some lowercase. I allowed uppercase using this solution: How can I make Capital letter ( ...
0
votes
0answers
49 views

Wordpress Polylang - Use same url slug on different languages [closed]

Just like this topic, I'm trying to create two pages with the same url, like this: domain.com/pt/downloads domain.com/en/downloads But it seems like polylang doesn't support this. Is there ...
1
vote
1answer
18 views

Rewrite slug for CPT

I have made and registered a CPT called 'generic'. When I set a CPT page in the menu, the address is www.sitename.com/generic/pagename I want to make the slug for this CPT simply be ...
0
votes
0answers
25 views

Images name = post slug

I am stuck at finding a way to rename images while I uploading them to my post. For example: If my post slug is wordpress-stackexchange, I want my images name will be changed automatic to ...
0
votes
0answers
57 views

custom post type archive slug vs. custom page template

I registered a custom post type for events and now I asked myself how to handle upcoming events and events in the past properly. By now, I'm displaying upcoming events on a custom page template I ...
0
votes
0answers
127 views

404 when remove Slug base custom taxonomy and custom post type

I have a custom taxonomy (cities) and a custom post type (spots). I have removed the custom taxonomy base slug and the custom post type base slug to have this : mysite.com/amsterdam (all spots in ...
0
votes
0answers
19 views

Category slugs being appended “category”

I presume this is because the slug already exists elsewhere e.g. I have a page called /solutions/customer-experience and I want the category slug customer-experience, I try to enter it but it gets ...
0
votes
1answer
38 views

Visting slug for 'post' post type shows 404 not archive?

I'm trying to get the WP default post type 'post' to show under the slug of /news/. I've changed the permalink structure to /news/%postname%/ which is fine when visiting a single page, however when I ...
0
votes
0answers
265 views

taxonomy term in URL slug won't forward to the correct term for custom post like it does for default categories/normal posts

so I notice when you type the URL of a post with a category (eg category5/post), it will automatically forward to the correct category in the URL (eg category5 changes to category1) if the category ...
0
votes
1answer
20 views

Filter string like a slug

I have a WordPress site using pretty permalinks. I want to filter a string to that the it ends up with the exact same formatting as the url slug, does anyone know the filter or function to do so?
0
votes
0answers
34 views

Page Titles and Slugs Change at random

My Page Titles and slugs for a single custom post type keep changing and at random. I set them to a specific name and slug and if I wait long enough the both are changed to a new page on the site. ...
0
votes
1answer
112 views

taxonomy/category term in URL slug irrelevant for post?

so I've got a nice hierarchical system working involving custom post types and taxonomies. (see Custom post types, taxonomies, and permalinks for reference) So if I have a post with ...
0
votes
3answers
79 views

Can we have a php “page” without a WordPress “page”?

Somewhere off of the homepage we need to show a container page which does some stuff with custom post types. Actually it doesn't matter what it does, my point is it needs to exist and be reachable ...
1
vote
0answers
325 views

Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?

The wordpress theme I'm using uses a custom post type called 'coupon' and a custom taxonomy called 'store'. The default permalink structure for a coupon post is site.com/coupon/CouponPost I would ...
0
votes
1answer
29 views

Unwanted slug in my website

There is an unwanted slug /question/ in my WordPress website. Slugs are automatically changed to /question/ when I open many pages. I have thoroughly checked my phpMyAdmin and I have no /question/ ...
1
vote
2answers
143 views

Custom Taxonomy breaking pages permalinks

I'm stuck for some days with this problem and I don't know what else to do. With %somethingHere% on slug rewrite, pages permalinks are broken (CPT AND CT OK). Without, I don't have my desired Post ...
0
votes
0answers
7 views

Switch the old post to the newer post in same tag [duplicate]

I wanna build website like http://www.apkfield.com/ with wordpress as CMS but with different structure. There are apps version and i think it uses tag (new post in same tag = new version). I want that ...
0
votes
0answers
41 views

Remove Page Slug from URL

I have a page www.website.com/merchant, this is a page post type. I placed a shortcode in this page to generate merchant information. So If the URL is www.website.com/merchant/store1, that page will ...
0
votes
1answer
100 views

Can't edit Custom Post Type slug/permalink

I have a custom post type and the permalink shows up but I am unable to modify it like I can with Pages and Posts. Is there a way to enable this? I have a few conflicts with some pages and I'd like to ...
1
vote
2answers
191 views

How to generate random numeric slugs for a custom post type?

I have this PHP code to generate a random numeric string: function generateRandomString($length = 12) { global $generatedStrings; $characters = '0123456789'; $randomString = ''; for ...
0
votes
0answers
23 views

RSS FEED taking over Slug

I created a custom rss feed called "feed-news" using a template called feed-news.php I followed this tutorial http://gregrickaby.com/custom-rss-template-wordpress/ For some reason that RSS feed has ...
0
votes
2answers
162 views

Later change of taxonomy slug base not changing permalink

When defining a taxonomy I successfully set the slug base for it as well, all via functions.php. However, any change on the slug’s base (via editing functions.php again) is being recognised, i.e. it ...
0
votes
0answers
24 views

Keep wordpress from modifying my permalinks

How can i stop wordpress from modifying my permalinks. It is like it has a mind of its own. If I have title of the page such as: Top Benefits of Red Apples, the permalinks is top-benefits-apples. ...
0
votes
0answers
21 views

two permalinks for the same post

Do you know a way of having two permalinks for the same post? I have post with an hebrew slug and i want to have the same result with an english slug i'll give it.
3
votes
1answer
247 views

Post slugs and images cannot have same name?

If I go to Media Library and upload an image called apple-pie.jpg And then I create a post called www.domain.com/apple-pie/ The link does NOT take me to the post. Instead the link will take me to a ...
-1
votes
1answer
136 views

Create page using same slug as custom post type

I am working on a site for a client who has custom post type called "practitioners" and several posts within this displaying info related to different practitioners. I want to create a page with a ...
0
votes
1answer
118 views

Bulk update post slugs through database

Is there a way to bulk update permalinks through the database? cause I have like 20k posts and all I want to do is add a prefix to the permalink. I could just manually update but that's too tiresome ...