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
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
2answers
72 views

Create a page that's to not be indexed or accessible via slug

I'm in the process of creating rather complex sites with Wordpress. I'll have a page template that collects data from other pages and shows them on one page. These pages are not used anywhere else ...
0
votes
2answers
71 views

Get ID of child from child slug, while knowing parent ID

I have a hierarchy that I need to get data from. It's the child (by slug name) that I need to get while already having knowledge of the parents. Highest Known Parent Page (slug : 'parent') |_ Child 1 ...
0
votes
2answers
81 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: ...
2
votes
1answer
194 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 ...
1
vote
1answer
13 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
71 views

Can slugs from posts and custom post types conflict?

I have a system built on WordPress where we're using several custom post types, and I'm seeing some weird behaviour. For instance, I have a CPT called "Flyers", and I also have a CPT called ...
0
votes
1answer
35 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
1answer
53 views

Define a post's title and slug from Custom Fields

This question is relate to another one on WPSE: Set post title from two meta fields I am looking for a way to define a WP custom post type's title and slug from a custom field (i.e. first name and ...
0
votes
1answer
68 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
0
votes
1answer
24 views

How to Disable UNICODE slug?

I am inserting the post titles in UNICODE, but i dont want to save in unicode UTF8 characters. Instead, i want to use my title convert function before slug auto-creation: like this: function ...
0
votes
1answer
94 views

How to get category slug link? ( include parent categories)

for example, if main category slug is cars; sub-category slug is: Ford; how to get the permalink of Ford, including its parent categories' slug? ( get_category_link() returns mysite.com/?cat=19 type ...
0
votes
1answer
27 views

How can I retrieve the slug for a custom post type via name?

How can I retrieve the slug for a particular custom post type via its name? I would appreciate some assistance.
0
votes
1answer
139 views

How to get or know the slug of home.php

I found this code from Different Main Navigation per category: <?php if(is_category('first-category') || in_category('first-category)) { wp_nav_menu( array('menu' => 'First Category Nav' )); ...
0
votes
1answer
47 views

Ideal top-level slug methods

Right now I have a post type that generates a slug, e.g. http://url.com/l/abcd/ for each entry. I have a query in my 404.php that checks for http://url.com/abcd before output and redirects it if found ...
0
votes
1answer
1k 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
119 views

Page content doesn't display when published but does when previewed as draft?

I have a page called ecommerce which is published. It's not private or password protected. When I view the page I only see the page title in the body none of the content. If I preview the published ...
0
votes
1answer
175 views

Using Page/Post Slug In Link / URL

Hope this is easy! Need to figure out (if possible) how to input my page's SLUG into a web url as a placeholder. For example: http://www.samplewebsite.com/search.ashx?t=current I need to replace ...
0
votes
1answer
728 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
1answer
68 views

How can I get rid of the the category suffix--NOT “prefix” (i.e. foo-1, foo-2, etc)

I just added a new category to my WordPress site, but the WP is adding a "-2" to the url as if there was an existing category with the same name. But there isn't. There was, but I deleted it. How can ...
-2
votes
1answer
50 views

Plugin remove-slug-from-custom-post-type very slow

I have installed the remove-slug-from-custom-post-type plugin but the whole website is very slow. Does someone has also this experience and the solution? Thanks! Not a good question?!
2
votes
0answers
20 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 ...
1
vote
0answers
25 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
35 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
620 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
227 views

wp_insert_post - How do I prevent incremental numbers on child pages?

I'm using wp_insert_post to dynamically generate child pages for a given page using a predefined array of values. The goal is to give each child page the same slug. For example, clicking "Generate ...
1
vote
0answers
239 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
72 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
116 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
24 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
22 views

make a post or page permalink based category

I have two language categories on my site, English and Indonesian. How can I create permalink post or page based on category slug such: example.com/en/page example.com/id/page or ...
0
votes
0answers
34 views

Is it possible to rename an url from custom post type?

On my test site: http://outletdokkum.nl/kollum/dagaanbiedingen/y-bike-2/ You see a week offers (weekaanbiedingen in dutch). But as you can see the url says Day offers (Dagaanbiedingen in dutch). ...
0
votes
0answers
24 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
25 views

How to remove slug from more than one custom post type

I followed this tutorial from WordPress (http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/) to remove slug from custom post type. Now my question is how to ...
0
votes
0answers
46 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
56 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: ...
0
votes
0answers
24 views

Create or Update Post Slug from Custom Fields

When i create or update a post, i want to create or update the slug (url) of my post from Custom Fields and not the title...! An idea ? Thank you !
0
votes
0answers
56 views

How can Custom Post Type and a page have the same slug?

I have a page called "Art" that can be viewed at /art. I also have a custom post type called "samples" with a post called "Art" inside of it. It SHOULD be viewed at /samples/art. For some reason, ...
0
votes
0answers
79 views

Change search permalink slug to e.g. /tutorials/search/searchterm

I want to rewrite the ugly /?s=searchterm to /tutorials/search/searchterm It's a multisite, so I want to make this multilingual. How can I accomplish this?
0
votes
0answers
58 views

Percent-encoded slug appears as decoded

What is the WordPress mechanism for creating post slugs when creating a new draft? I enter a post title, and after some seconds, a suggested permalink appears. I have traced this behaviour to the ...
0
votes
0answers
49 views

Set post title and slug from meta fields not working

I have a custom post type where I have the post title disabled. I want to set the post title and slug from some custom fields. I was using this and it worked great, but since I've upgraded by site to ...
0
votes
0answers
29 views

WP Query Wordpress Post Type with the same Taxonomy name

This is what I have: Custom Post type "Books" with Taxononies/Categories "Genre" and "Author" Another Custom Post Type "Authors" which have all author pictures and bios. This is what I want to do: ...
0
votes
0answers
45 views

How to update permalink on the fly?

So, Wordpress automatically generates the slug/permalink on the fly based on the post title after you click away from editing the title. Is there an action/filter hook for me to change those on the ...
0
votes
0answers
64 views

Custom Post Type Slug prefix that includes the path of a post from another custom post type

Let's say I have the following post types: secondary episode I have a post named "Episodes" in post type "secondary" (to talk about and list recent episodes), its url would be: ...
0
votes
0answers
23 views

Display Plugin information on specific url

So I created a WP plugin with its own unique DB tables. I chose this approach as opposed to using a custom post type because of relationships I needed between the tables. So I'm not even sure how to ...
0
votes
0answers
50 views

Use custom clean URLs for a plug in

I've created a plug in that displays a list of items from the database. I need to link from an item to the item description page, however instead of the link looking like: ...
0
votes
0answers
67 views

Remove blog slug from WPMU?

i have wordpress MU, everything is fine in child sites , but in the main site in the permalink structure have been changed itself , mean that after the site url it have like http://example.com/blog , ...
0
votes
0answers
89 views

Is SEO the Wordpress auto-redirect wrong category aliases to correct (if is changed)?

I had a Joomla! website until now, and at this moment I want to move my website to Wordpress because Joomla! have too many processes and limitations. Now I move my content from Joomla! to Wordpress ...
0
votes
0answers
87 views

WordPress permalink slug encoded custom taxonomy

I use url-encoded slugs because I live in Sweden and it's nice to have URLs like /test-åäö/ It works by URL-encode the slugs before publishing. http://meyerweb.com/eric/tools/dencoder/ ...
0
votes
0answers
61 views

No results for my WP_Query array

I have to get related posts via keywords/tags, and I found a ton of examples elsewhere on how to do it, but the query doesn't seem to produce any results. Can anyone point out how to do this, and is ...