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

0
votes
0answers
3 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 .. ...
2
votes
3answers
608 views

Wordpress 3.8.1 Multisite blog slug problem

Just installed Wordpress 3.8.1 multisite but can't remove the /blog/ slug. I've tried all suggestions for older versions of Wordpress (including the solutions to the question posted on this site 6 ...
0
votes
0answers
6 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 ...
3
votes
1answer
270 views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
0answers
29 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
1answer
24 views

Getting the slug into a variable, how to echo that variable

The page slug for each of our wordpress articles is a unique set of seven digits, and we are using that string of numbers as the page slug. In trying to learn how to customize our site even further, ...
0
votes
2answers
35 views

Add category slug as class attribute in a link array

This incredible website and the genius developers here have helped me significantly in the course of my WP Dev over the years, firstly THANK YOU. I am now faced with a problem that I have been trying ...
-1
votes
0answers
15 views

Add the Category Slug to a class in a link array [duplicate]

I am using the Microkids Related Posts Plugin and I want to add the Category Slug into a class in the link. This is so that I can use the Category Slug as a unique global identifier which I can target ...
2
votes
2answers
1k views

Remove parent slug for child pages

I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink. Something that automatically changes the permalink for child pages. Example: ...
1
vote
1answer
30 views

Adding special characters to slug?

Is it possible to prevent WP from stripping out certain characters when customizing a URL? For example, affiliate ids usually have something like ?id=something. Customizing a content's slug with ...
0
votes
1answer
926 views

List child pages by slug not ID?

I am looking to use the wp_list_pages function to show children pages of a specific page ID. I was able to do this easily, but now I found an issue with it. I am running a Wordpress network of sites ...
0
votes
2answers
21 views

Is there a way to remove the option to modify the Slug in post.php

I am trying to remove the option to edit the Permalink. I know how to hide it with CSS and I have. But a hacker could simply just go to Inspect Element and change display: none; to display: block; ...
3
votes
1answer
93 views

Rewrite category slug

I have some categories like so: /europe/postname /usa/postname For various reasons I would like to rewrite these to be: /news/view/postname I've tried a few re-direct plugins but not had any ...
0
votes
1answer
20 views

How to print partial URL after #? [closed]

In WordPress, is it possible to retrieve the part of the URL after a #? I'm trying echo the_slug(); but it's showing front slug. But I want after #tag For example: I'm searching and land on this ...
3
votes
2answers
1k views

Regenerate slugs from title of posts

is it possible to regenerate the slugs programmatically after changing the titles of the post? The girl that updated the title of more than 200 posts just "forgot" to update the slug too, so i was ...
0
votes
2answers
28 views

Relationship with 2 custom post types

i want to relation to custom post types. I register post types with this code add_action('init', function(){ $args = array( 'public' => true, 'query_var' => true, ...
0
votes
1answer
28 views

Costum post type with costum (sub)taxonomy

This question is probably asked before but my language not being natively english i cant really find the answer: I got a custom post type: products and custom (hierarchy) taxonomy: collection in the ...
0
votes
3answers
1k views

Add menu and submenu in admin with a URL instead of slug?

I use this function and hook: function mysite_admin_menu() { add_menu_page( 'Categories', 'Catégories', 'administrator', 'categories', 'a_function' ); add_submenu_page( 'categories', 'Manage', ...
0
votes
1answer
41 views

Remove taxonomy slug when not assigning taxonomy with custom post types

I have created a custom post type plugin that when the user assigns the post to a taxonomy (termed 'classification' in the site), it is added to the url slug. So basically it renders: ...
0
votes
1answer
44 views

Custom post type's slug gets wrong when adding a custom meta box

I'm trying for hours now to find the error moving back and forth. I have a custom post type. Everything works fine until I add my custom meta box. Now suddenly the slug gets the title of one of ...
0
votes
3answers
67 views

Custom Slug for a custom post type and default post

It's now several hours that I am trying to get this done without finding a proper solution. WHAT I WANT TO ACHIEVE I'd like WP to use the following URL structure: 1) Posts -> ...
0
votes
0answers
43 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
1answer
26 views

How to remove the category from post slug

I want to remove the category from post slug, for example a post slug like "http://my_site.com/uncategorized/hello-world/" would become "http://my_site.com/hello-world/". My search only gives ...
3
votes
1answer
172 views

Slug Formatting : Acceptable Characters?

I have done a lot of googling on this so I sincerely apologize if there is a codex entry for this but for the life of me I can not find a hard and fast rule about what characters are acceptable in a ...
0
votes
1answer
22 views

Why doesn't 'continue' work in page?

OK, so I'm working with a template (I have contacted the developer and they were of no help, so I'm modifying the template page as needed). The template displays portfolio items, using the following ...
1
vote
0answers
50 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) ...
0
votes
3answers
297 views

Remove Slug from Custom Post Type

I was wondering how i can remove the prefix from the slugs of custom post types using htaccess rules or any other appropriate method. Currently my custom post types look like this: ...
1
vote
0answers
38 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
1answer
654 views

Pagination for category slug returns 404 when page >= 2

I have a custom type and the slug is: 'rewrite' => array('slug' => 'blog/%blogs_tax%'), And after register_post_type() I have a function to rewrite the slug variable. I works fine, but I ...
0
votes
2answers
1k views

Remove permalink for custom post type

I have multiple custom post types and custom taxonomies, "staff", "games", which have the permalinks: domain.com/staff/%staff-name% domain.com/games/%game-name% However, I'm only using these custom ...
0
votes
0answers
60 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
1answer
44 views

Category slug not showing for Custom Post Type

I have a Custom Post Type called 'shows' which makes use of the default Wordpress Category function. I can see my 'shows' posts on /category/%postname% URL's, but when I post the URL the slug looks ...
3
votes
3answers
2k views

How to check if a slug exists?

I have a arbitrary string and want to check if a post with that slug string exists in the site. I tried to find a way to list all slugs, but can't find such a thing. Thanks
0
votes
2answers
2k views

Get menu item slug

I use custom menus and I’d like to get the menu item slugs. Is that possible? // Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_nav_menu) // This code based on ...
0
votes
1answer
24 views

post type slug vs page slug

I having and issue with my permalinks, I wonder if someone has solved this. Basically I have a page named videos and also a post-type name videos, so I try to access to /videos I doesnt not display ...
0
votes
1answer
46 views

Wordpress Tags in class

I have added tags to my Custom Post Type. Now I want to use them to create a isotope portfolio, I can load all tags with this code: <?php $args = array( 'post_type' => 'portfolio', ...
0
votes
1answer
24 views

sort by name (slug) custom post type

What's wrong in this query ? the sortby=name doesn't change anything. $the_query = 'posts_per_page=-1&sortby=name&order=ASC&post_type=mycustom&custom_cat=mycat'; // query is made ...
0
votes
1answer
50 views

Custom Post Type archive-{post-type}.php not working

My permalink is set to a custom structure: /blog/%year%/%monthnum%/%day%/%postname%/ I have a custom post type we'll call "post-type". I also have an archive page named archive-post-type.php ...
0
votes
2answers
19 views

Slug Taken, Cant Find Which Page

I'm working on a friends site and I am attempting to update the slug example.com/blah but when I update the slug/url to /blah and click ok it updates it to /blah-2. This means that there is an ...
0
votes
0answers
38 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
2answers
1k views

Rename “Portfolio” slug?

I have a WordPress theme that I am working with called "Forte". Yes, it is a premium theme. I have reached out to the developer but apparently he doesn't really want to help in this situation. Well I ...
0
votes
1answer
51 views

Problem with single-page for my custom post

I'm working on a website with a portfolio section, and I'm almost finished with this section, but I have a problem with the single page which is : whenever i click on any portfolio link, the single ...
1
vote
1answer
99 views

Getting author page slug from get_users() or get_userdata() functions

wp_list_authors() gives a list of author pages permalinks (site.com/author/john, site.com/author/jenny, etc). I want the same links using get_users() or get_userdata() functions instead. I need these ...
1
vote
1answer
49 views

Is there a way to have custom post type and page with the same slug?

I have a custom post type registered as follows: register_post_type( 'news', array( 'labels' => $labels, 'public' => true, 'show_ui' => true, ...
0
votes
1answer
18 views

Site transferred to new server produces 404s

I have transferred my site to a new server. I can login to wp-admin ok and can view the home page but all other pages produce 404s. I have changed the 'Home' and 'Site URL' options in the settings ...
0
votes
1answer
38 views

Can't make permalink of CPT work

i'm learning how to use wordpress, but i've encountered a big problem. I'm trying to create a custom post type, i've used this code: add_action('init', 'init_realizzazioni'); function ...
0
votes
0answers
38 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 ...
-2
votes
2answers
120 views

can't change page slug

I created a page (with slug "page-title" say), then deleted it. I created a 2nd page with the same title, and it automatically saved itself with a page slug of "page-title-2". The first page no ...
1
vote
0answers
46 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
votes
1answer
30 views

is this a bug or not?

When we make a custom post type (in my case 'news'(slug is news also)) and a page is with name 'News' (with slug 'news'). Then when I add some pages with parent 'news', it's displaying 404 in ...