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
1answer
543 views

How to create drop down for child categories of current taxonomy being viewed?

I need to know how can I get the child/grandchild terms of the current taxonomy being viewed, and put it into a drop down so that I can add values to the options. I am currently using this code to ...
1
vote
1answer
744 views

Change slug with custom field

I want to change the slug of a post with a custom field. In example, if the custom field is "keyword" my post link will become: mysite.com/keyword. If the custom field is empty, i want to generate a ...
1
vote
0answers
284 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
2answers
1k views

Custom Permalink with Dynamic Taxonomy for Custom Post Type - Works, but breaks other permalinks

My custom permalink with dynamic taxonomy is working for my custom post type. However, it breaks all my other permalinks. They display a 404 error in the content area (header and sidebar still ...
1
vote
3answers
2k views

How to create non-unique sub-category slugs?

What’s the best way to make Wordpress accept non-unique sub-category slugs? By default, Wordpress ensures that every ‘slug’ portion of permalink URLs is unique, and is very savvy about using this to ...
0
votes
2answers
151 views

Wordpress custom post type with folder structure in slug

I have setup a custom post type with the slug "interview" and it is working fine. I am trying to change the slug to "magazine/interview" but I keep getting 404 errors when I try to access the posts ...
2
votes
1answer
815 views

Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?

Searching for a how-to on changing author slug, I found two methods: Change the user_nicename field in the MySQL database of your WordPress site to whatever you want the slug to be. Changing the ...
0
votes
1answer
77 views

How to include stylesheet in custom admin using parent_slug

Using this code from codex: function my_enqueue($hook) { if( 'edit.php' != $hook ) return; wp_enqueue_script( 'my_custom_script', plugins_url('/myscript.js', __FILE__) ); } add_action( ...
-1
votes
1answer
386 views

WordPress v3.1 Has Character Encoding Issue With Title/Permalink?

I was on the latest v3.0.x series and had no issues. Once I upgraded to WP v3.1, I am having a strange issue with character encoding in permalinks. If my title was "I have $50 today" in WP 3.0.x, the ...
1
vote
2answers
37 views

How do I link to a blog not set as the homepage?

I have a blog here /www.mysite.com/section/news/ that only shows news in a specific category. When I use wp_get_recent_posts() and get_permalink($recent["ID"]) the link goes here ...
0
votes
2answers
272 views

Select query with two and two related taxonomies

is this possible for 2 taxonomy and 2 terms $querystr = " SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) ...
1
vote
2answers
2k views

How does WordPress generate URL slugs?

Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I'm writing a script that needs to generate URL slugs identical to the ones WordPress generates.
2
votes
2answers
3k views

Removing the number in a category slug

I have a category that ends with -2, and there's no way I can change it back to the plain word. I know there are problems with numeric slugs, but this is just a word. I also know that a common answer ...
4
votes
1answer
323 views

Display posts with author in the url with custom post types

I'm having a really difficult time with this. I have a multi-user gallery site. Each author has his own page that lists the author's posts (this is a custom post type). I have made it so that the ...
1
vote
1answer
1k views

WP query by custom post type slug/name

I am running a simple wp query to retrieve just one post. But the post is a custom post-type post, not a normal post $ajaxBike = $_GET['varbike']; $bikeProfile = new WP_Query(array( 'name' ...
5
votes
4answers
134 views

Post type child of another post type

This may be a stupid question but is it possible to have a post type child of another post type? Let me explain with an example: I created 2 post types, "Actors" and "Galleries". What i want is to ...
0
votes
2answers
97 views

list child pages as slug

I have a section on my site that needs a list of pages that are descendents of a particular ID. I need them listed on the child and grandchildren pages. But the page titles are too long, so I need to ...
1
vote
1answer
321 views

Force unique page slugs across all post types

I have a site with many custom post types and I need a unique slug for each page. What I'm seeing is that wordpress only checks for slug conflicts within a post type before appending "-2", "-3". So ...
4
votes
1answer
256 views

Dynamic taxonomy in permalink made all other posts NOT FOUND?

I added my taxonomies in the permalink instead of the Custom Post Type's slug, and it works fine. I'd even say everything was working fine but changing the WP installation to Multisite broke all other ...
1
vote
1answer
24 views

Template for slug

I am using the "Edit Author Slug" plugin to provide public profile pages on my site using the following structure: mysite.com/users/username. Now, I want to show a list of all users on ...
0
votes
2answers
3k views

Using a portfolio_category slug in wordpress URL

I won't lie - I don't know php but I enjoy digging around trying to find ways to customize themes so that they behave how I want them to. Any help would be very much appreciated. What I am trying to ...
1
vote
1answer
453 views

Non latin post slug truncate

I created a custom post type and set its permalink structure to 'category/postname'. I found that sometimes, when i create a post in a non latin characters, the post slug is getting cut. I googled ...
0
votes
1answer
134 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 ...
1
vote
1answer
119 views

Get the name an the description of a link category

I have a link category with the id $id=23; and the slug $slug=friends;. I managed to read all links from that category using get_bookmarks($id). Now I also want to use the name and the description ob ...
0
votes
1answer
71 views

Two installs conflicting - Pages redirecting

I have two installs of wordpress on my server. Site 1. mysite.com Site 2. mysite.com/othersite The first wordpress install is located in mysite.com/wordpress, but is viewable at mysite.com, and the ...
4
votes
3answers
10k views

Get page content using slug

I'm trying to get page content when I only know the slug string. Is there a function for this, or an easy way to do this or is this a case of doing it via SQL? Thanks very much
2
votes
2answers
283 views

Remove Author Slug & Replace With Username

I reviewed all related questions but none tackle this exactly so I'm posting the question in hopes the pro's know how to handle this. I would like to change the author slug to remove the term /author/ ...
1
vote
4answers
644 views

How can I force WordPress to redirect to canonical permalinks?

In WordPress 3.1 a post can be reached a number of ways, for example each one of these takes you to the same post (where /id is the base) http://myblog.com/id/1008 http://myblog.com/id/1008/my-slug ...
7
votes
1answer
356 views

Custom Post Types, slug, archive and SEO plugins

I made a custom post type called "friends". I am able to correctly list my friends using this urls: http://mysite/friends/friend1/ http://mysite/friends/friend2/ http://mysite/friends/friend3/ ...
1
vote
1answer
1k views

Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url

I have been reading dozens of posts and honestly, I have many doubts on how this work. Furthermore, I think that with WP3.1 more issues have been added here because I am having even more problems now ...
2
votes
1answer
178 views

Get page slug and assign a variable within functions.php

I have created a lazy loading script using AJAX and JSON for my blog. It works perfectly. However I have 4 different blogs on the same site. These are created using custom post types. I need to get ...
0
votes
2answers
230 views

WP appending -2 to the end of my slug. Where are the originals stored so I can delete them?

I've been learning about taxonomies, custom posts etc though a lot of trial and error. I finally have it working how I want, however now I am getting some conflict with my desired slugs. I can't name ...
1
vote
1answer
585 views

Does WordPress limit the length of slug names for Post Meta or Terms?

The WordPress Codex states the the Post Type Names and Taxonomy Names have a limit to the slug name. Register Post Type -- max. 20 characters, can not contain capital letters or spaces Register ...
0
votes
3answers
125 views

Echo Category Nicename

I am trying to echo the category nicename to reference a category image stored in my images folder in another folder called categories. I am using this code: $category = get_the_category(); echo ...
0
votes
3answers
2k views

Get wordpress taxonomy slug name(s) to use as div class

I'm trying to mark up my posts using their custom taxonomy slug as the div class so that they can be filtered... So far what I have displays the taxonomy name but what I need is the slug so I have a ...
3
votes
1answer
61 views

which is the function that removes accented vowels?

Which is the function WP uses to convert words like "voilà" and "novità" to "voila" and "novita" in category slug? Can I recall it in my theme?
0
votes
2answers
1k views

Automaticly add slug to posts

I'm using a us/news/%postname%/ structure for my permalinks. This works great for regular posts. However, I have a few different custom post types, and I don't want the us/news part in their slug. ...
2
votes
1answer
571 views

How to achieve this permalink -> category-name/custom-post-type-name/post-name

I am trying to use categories to provide the structure for my site. I will create sections on my site called England, Wales, Scotland and Ireland . These will be categories. My posts will use custom ...
1
vote
2answers
4k views

When I change slug, will WordPress create redirect from the old URL?

When I change a slug from post-a to post-b, will WordPress create a redirect from /post-a to /post-b, like HTTP 301 or something similar? If not, is there a plugin for that?
1
vote
2answers
73 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
1answer
201 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 ...
1
vote
1answer
1k views

remove custom taxonomy base / slug [duplicate]

Possible Duplicate: Remove slug in taxonomy url I'm using proreview theme and it uses a custom taxonomy called "review-cats" In of this www.domain.com/review-cats/clothing I want ...
1
vote
0answers
124 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 ...
1
vote
0answers
77 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
1answer
3k views

How do I get the slug of a custom taxonomy category of a post?

In my template file, I loop through posts that are categorized either web, print, or marketing in a custom taxonomy portfolio. How do I echo the slug of each posts category?
1
vote
1answer
303 views

filtering special chars from post slug

Is there a way to prevent WordPress from including special characters like – (long dash), ", ', etc.. from the post slugs? Basically, I'd like to run the post-slug through a filter when it is ...
1
vote
2answers
376 views

slug: should I use latin characters only?

I build a legal portal in a non-latin language (Greek). I want all my content to be thoroughly indexed by search engines, preferably in Greek. Should I enter my post slugs in Greek? The pages then ...
5
votes
3answers
360 views

Prevent Wordpress from abbreviating-long-slugs…-in-the-admin

On post edit pages, when a slug exceeds a certain number of characters, Wordpress abridges it with an ellipsis (...). For example, if my slug is i-want-to-be-able-to-see-this-slug, it appears on the ...
4
votes
2answers
226 views

How to seamlessly redirect between different archive and singular slugs?

I have a CPT with slug function (singular) and archive slug functions (plural). Permalink structure for: singular is /function/[postname]/ archive is /functions/[page-x/]. (can poke live at ...
0
votes
1answer
520 views

Creating /blog subsite on WP multisite network

I've had a site for a few years that till yesterday consisted of two WP 3.2.1 installations- one for the main site and one for the blog, which had a different theme and was located at [site.com]/blog. ...