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

2
votes
0answers
65 views

Plural Category Base Slug On Category Archive Page

I've got a little problem with the category base slugs. Say I have got a category called 'Resources', with the category slug set to 'resource'. So any post in the category resource will appear with ...
1
vote
0answers
20 views

wp_update_post adding a -2 to the post slug

I've recently created a php file that is creating posts using the wp_insert_post function. This is working great and its inserting the post as it should do. I am leaving out the post title as I want ...
1
vote
0answers
395 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 ...
1
vote
0answers
25 views

put custom taxonomy slug in front of their respective term slugs

I needed to register two custom taxonomies which partly share some terms. The structure would look like this, when commerce and crafting are two different custom taxonomies: Commerce Furniture ...
1
vote
0answers
39 views

Register slug capitalized in url directs to separate page

I'm designing a theme in Wamp using the underscore theme. I also have buddypress enabled. I've been working on a custom registration page under localhost/testsite/register/ but I had cap locks on when ...
1
vote
0answers
115 views

How to change the Author Slug from Username to Nickname and deal with Special Characters

I need to change the author slug from username to nickname: This is what is set by default: http://domain.tld/author/(username) This is what I need: http://domain.tld/author/(nickname)-(author-ID) ...
1
vote
0answers
103 views

Use category base slug in posts' permalink

The Goal I would like to format my permalinks as follows: for posts: somePrefix/%category%/%postname% for categories: somePrefix/%category% Where somePrefix is the same in both cases. I know ...
1
vote
0answers
65 views

Pre-populate Slug / Permalink with URL

I would like to not only pre-populate the title, tags, and categories, but would also like to pre-populate the slug / permalink as well. Can I do this and if so how? Here's my functions.php code: ...
1
vote
0answers
980 views

Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure

this is my situation: I have a Custom Post Type named struttura (like accommodation): function custom_post_struttura() { $labels = array( 'name' => _x( 'Strutture', ...
1
vote
0answers
382 views

Custom Post Type - Duplicate Page Slugs

I have 2 custom post type registered in my functions file, sectors and projects. There are pages with the same name and hence URL in both post type. My problem is that WordPress wont allow the same ...
1
vote
0answers
88 views

Slugs Disappeared Leaving 404s - Quick way to repopulate?

I've got roughly 3000 pages in WordPress w/ permalinks on. I recently cleaned up the database which appears to have deleted a fair amount of slugs for many of the pages. Obviously, with no slug, ...
1
vote
0answers
141 views

Problem in disabling canonical 301 redirect

I need to disable canonical redirection of category slug. My url structure for a category page looks like www.sitename.com/categorybase/categoryslug/subcategory/ Now when i change the ...
0
votes
0answers
16 views

404 suggests posts instead of showing custom 404 when the url is not home

I have a custom 404 witch works well when you write the url like www.site.com/randomCrapAbC but when there is post-type or category in the slug, wordpress tries to suggest post in that category ...
0
votes
0answers
19 views

Get full control over custom post type url

The situation I have a custom post type, lets call it 'CP', which has two parent categories named 'companies' and 'category'. Posts of type CP can only have one company and multiple categories. So, ...
0
votes
0answers
13 views

Removing base slug from hierarchical custom post type on a WordPress Multi-site

So, I’ve been trying to remove the base slug from a hierarchical custom post type on a multi-site build for the past week or so, and haven’t found anything that actually works yet. The post type is ...
0
votes
0answers
36 views

Remove Custom Post Type slug from url, two CPT

I have 2 custom post types hilp-a and hilp-b. I want to remove custom post type slug from the url. e.g: test.com/hilp-a/test to be test.com/test and test.com/hilp-b/btest to be test.com/btest I ...
0
votes
0answers
7 views

Virtual parent in hierarchy for certain categories

I have a website where some posts go into the 'News' category and all the others are dispersed throughout other categories. There's a 'Blog' page set up under Settings>Reading which uses a customised ...
0
votes
0answers
6 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
0answers
22 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 ...
0
votes
0answers
40 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 ...
0
votes
0answers
23 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
33 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
22 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
0
votes
0answers
38 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
15 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
45 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 ...
0
votes
0answers
102 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
28 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
64 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
145 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
21 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
0answers
271 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
0answers
37 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
0answers
42 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
0answers
27 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
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.
0
votes
0answers
49 views

Add slug current in get_posts( $args );

In my Costum Post Type,I would like to have a list of my CPT (aka "createur") in my current catégory (aka "domaine"), my code is in taxonomy.php Example : ...
0
votes
0answers
14 views

Remove “#” in slug of filterable Portfolio

This is the site im working: http://executrain-qro.com.mx I'm using a filterable portfolio and how you can see the slug is rewritten depending on the category ... the problem is that Internet ...
0
votes
0answers
20 views

Different Slugs depending on last page

is it possible to configure WordPress on some way that if i have a portfolio Item ( from my theme ) which will be opened from 2 different pages and w/o an URL jump so that www.xyz.com/brands/example ...
0
votes
0answers
63 views

wp_nav_menu use #<slug> instead of permalinks

I need help modifying the wp_nav_menu arguments so that it can generate a menu which has # instead of permalinks.. I know I can add custom link menu items, but I want the menu to be more dynamic .. ...
0
votes
0answers
23 views

Show Subpage in Author Slug Address

I changed author slug to "profile" then i created a page named "profile" and a subpage named "edit" for showing profile editing page. Now profile edit page link is "mysite.com/profile/edit" but ...
0
votes
0answers
147 views

How to allow Custom Post Type slug conflicts?

Okay so I've done a fair bit of searching through Google before posting this and there's a tonne of questions/answers on this topic but none that resolved the issue specifically. Let's say I'm making ...
0
votes
0answers
142 views

Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks

I have a problem currently that is related to permalinks. I have a custom Post type "workshop" and two taxonomies named "manufacturer" and "models". What i want to get and tried is this URL pattern. ...
0
votes
0answers
132 views

Change custom post type slug from URL

I have two pages showing portfolio posts, one of them shows the posts with parent category 'products', and the other one the posts with parent category 'projects'. The problem is that, the url inside ...
0
votes
0answers
49 views

Use the same slug for posts in different post types

I have 2 post types in my WordPress theme-- one is destination and the other is gallery. Both post types have a post with the title "Bagan". My problem is that I am unable to create the same ...
0
votes
0answers
49 views

Possible to hide parts of the slug from get_template_directory_uri and bloginfo('template_directory')

At the moment i am running and building a wp site on a local install with mamp. Additionally i have moved the wp files from the root directory to a folder. i've included files then e.g. with ...
0
votes
0answers
62 views

Custom field as Slug

I would like to ask if it's possible for a custom field to become a slug. Like if I have a custom field of "when" whose value is "today", I would like the address of the post to be ...
0
votes
0answers
214 views

how do i add posts-page slug before posts slug in permalinks

I have a posts page and the page slug is /blog my current permalink structure is /%postname%/ when i click on a blog post. say for example the posts slug is adrenaline-rush the url is ...
0
votes
0answers
176 views

How to make nested custom post type slugs work

I'll try to explain how I want this to work, rather than what I've done so far, as nothing seems to work. I want 3 custom post types: Products Consumables Accessories with the following slugs: ...