The slug tag has no wiki summary.
1
vote
1answer
25 views
Set default (auto) slug prefix for Tags
Is it possible to add default prefix to the slug of each newly added Tag. So that full slug, would be stored in database (no rewrites).
For example:
Name: Tag1 -> Slug: prefix-tag1
Name: Tag2 -> ...
0
votes
3answers
51 views
How to retrieve the slug of current page?
I am trying to retrieve the slug of the current wordpress page outside the loop. The title of the page returns with wp_title () but how can I get the slug?
<li><a ...
4
votes
1answer
121 views
Redeclare/Change Slug of a Plugin's Custom Post Type
Is it possible to redeclare/change the slug of a plugin's existing custom post type (without simply editing the plugin)?
That is, if Plugin X creates a custom post type with the slug /uncookedtoast/, ...
1
vote
2answers
24 views
Define a name to the posts slug
I would like to use the url http://site.com/post/title-of-the-post for my posts and I've saw in my admin page I have the current url http://site.com/%slug%/title-of-the-post obiouvsly incorrect.
How ...
0
votes
1answer
37 views
I get 404 after slug change - what can be done?
I just changed the slugs for 4 pages on my site, and since then I get a 404 when trying to visit them. When I switch to normal/ugly permalink structure it's fine, and when I switch back the problem ...
3
votes
1answer
33 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 ...
0
votes
0answers
25 views
WP thinks that my gallery page is a WP E-Commerce Product Category?
Now I have a WP E-Commerce category page as follows:
mysite.com/products/necklaces
and I have an independant gallery page as follows:
mysite.com/necklaces
now when I go to mysite.com/necklaces, ...
0
votes
1answer
81 views
custom htaccess rewrite rule for page
i have a page in wordpress called "video". its page id is 6, and its slug is "video"
in my theme ive set it up to show content based on GET variables
here is the URL rewrite im trying to set up:
...
0
votes
0answers
17 views
change permalink structure to tags
I would like to know if there was a way to change the permalink structure to the tags. Instead of wordpress automatically filling in the post ID, category, or post title, I want it to will in the ...
0
votes
0answers
39 views
Remove parent pages from slug
I've seen questions asking to remove categories from slugs but was wondering if there was a way to remove all parent slugs so that only the current page's slug is left in the url
...
0
votes
0answers
28 views
How do I override a page's URL with a shorter slug?
I've got some pages like this:
About Page
Resources
- Toolkit
- Directory
- Contact
FAQ
Currently the URL of the Toolkit page is:
/resources/toolkit/
I want to keep these ...
0
votes
1answer
60 views
I want “pages” to prepend “category/” to their slug
Like 'categories', I want 'pages' to prepend "category/" to their slug; this is because the menu structure was planned to be straightforward ('page' > 'category' > 'post'). Now that that structure is ...
0
votes
1answer
30 views
How to add categories to taxonomy pages?
the story:
I use wordpress to build my site with 3 categories "red", "green", "blue" and registered custom taxonomy "products" that includes some taxonomies like "pen" etc., I created a template ...
0
votes
0answers
11 views
retrieve the slug name of the category under specific taxonomy
I tried the above code. I am doing portfolio filtering with jQuery and Css, so i need to retrieve the slug name of taxonomy 'portfolio_category' under which i have added categories like css, ...
0
votes
1answer
43 views
Is this the correct way to add post-slug input field?
I added slug input field in my custom post type and allow users to edit it at front end. Then, when insert post, I use this:
$wp_insert_post_args = array(
'post_status' => 'publish',
...
0
votes
1answer
54 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 ...
0
votes
0answers
24 views
Contributors can't set slug
A user is complaining that their Contributor users - who create custom posts that an editor has to approve - aren't able to set the slugs on the posts. It is giving them a slug field to edit on the ...
0
votes
0answers
20 views
How to use structure tag for slug defined by Custom post type plugins
In custom post types add/edit form > Advanced options > Slug :
if I use a normal text like "premium" it works but not for "%category%/%year%".
I found solution from ...
0
votes
0answers
40 views
Slug / Re_write problem: Change page to new slug, and after some time the system changes back to the old slug
I’m having a problem with a rewrite rule and permalinks.
I’ve a page which uses a custom template, which started out named “Members” and the slug was “members”. So the URL was: ...
0
votes
0answers
39 views
Exclamation mark still in slug after Custom Post Type slug rewrite
My permalink is structured like this:
/!%post_id%/%postname%
However when I use rewrite in Custom Post Types it will remove everything except for the '!'. So instead of /blog/ I get /!blog/. I have ...
1
vote
0answers
31 views
How to avoid directory name collisions with root Wordpress install
I need to know how I can keep the end-user of a wordpress site installed in the root directory from creating slugs that will interfere with sub-directories that are already present.
I've Googled ...
-2
votes
2answers
37 views
author slug in the backend
hi and thanks for reading
i try to grab the authors slug in the backend.
get_the_author_meta( 'user_nicename' );
is empty.
i tried to google this issue, but cant find any concrete info on how to ...
0
votes
1answer
108 views
custom slug for custom post type
hi and thanks for reading.
my issue is, i want to insert the specific author into my custom post type article.
my code looks like this
register_post_type('charts', array( 'label' => ...
0
votes
0answers
43 views
Auto insert term slug as tag on post save
I have the following code but obliviously it doesn't work as expected. It should take the terms from the taxonomy TAXONOMY_NAME only for custom post type CUSTOM_POST_TYPE and add as tags.
...
0
votes
0answers
22 views
Rename certain page slugs
I'm running a WPMU network and I would like to know how to rewrite certain pages slugs such as 'test', 'admin', to 'test2' and 'admin2'.
Example:
user.website.com/test becomes ...
0
votes
0answers
59 views
Rewrite to remove part of slugs in permalinks
How can I use a WP Custom Rewrite to remove part of a slug, like how php's explode() works?
I want to have these URLs:
/reports/biotech/deals/
/reports/retail/deals/
/reports/finance/deals/
...
1
vote
1answer
47 views
Must slugs be unique?
Is it true that slugs must always be unique, regardless of the rest of the url, or if it's used by different post-types or taxonomies?
For example, is it possible to have both of these urls?
...
0
votes
2answers
135 views
Get list of all registered post types slugs
I'd like to get a list (array) of all the post types I registered.
Precisely I would like to retrieve their slugs.
Could someone help me?
thanks!
0
votes
1answer
19 views
One Page or Post, n Slugs
What would be the best option for serving up a page for any one of many slugs. Suppose I have the following:
example.com/the-broken-slug
example.com/thebrokenslug
example.com/broken-slug
...
0
votes
1answer
109 views
Can’t use a specific custom URL (slug)?
I’m having some problems understanding an error I’m getting. I have a page which is called “pitch” and as such the URL and the slug should be “pitch” as well, so: www.my-domain.com/pitch/
But when I ...
0
votes
1answer
62 views
BuddyPress Component Slug 404
I have created a custom component using the latest skeleton framework that needs to have its URLs as part of the current group. I have accomplished this is in my component's setup_nav() function, but ...
0
votes
3answers
200 views
Using same slug name for a page and category
I know it isn't good practice but I'm considering using same name slugs for some pages and categories on a site that I'm working on. It's a small site and it doesn't seem to affect anything in ...
1
vote
0answers
340 views
Custom Post Type Slug / Page Slug Conflict - Prevent use of reserved slug on page save?
I have a custom post type of portfolio (slug portfolio) in my theme and all is working well except one thing. When people create a page with a slug of portfolio, eg: example.com/portfolio, the theme ...
0
votes
0answers
43 views
Hidden Slug in Wordpress
I'm trying to use to create a page called /about but I keep getting an error that it is already in use. I've searched everywhere, but cannot seem to find this page and I can't even go to the page so I ...
1
vote
4answers
483 views
Theme localization of “slugs” (custom post types, taxonomies)
in my theme I want to define a series of custom post types and custom taxonomies, each one having its own customized slug; the base language of my theme is english, therefore the slugs will be in ...
0
votes
1answer
48 views
How can I edit the slugs of tags?
I'm interested in specifying different URL slugs for tags than the text they contain (e.g. changing the slug for a "QnA" tag to "questions-and-answers"). What's the easiest way of making and ...
1
vote
1answer
90 views
How to edit/remove a term that's in multiple taxonomies?
Some of the terms on my site appear with the same exact slug, in multiple taxonomies.
For example: 'education' appears in both the 'department' taxonomy and the 'topic' taxonomy.
Now, I can't seem ...
1
vote
1answer
27 views
Displaying a full post instead of a slug per category?
I have a single category on my blog that I want to display full posts in when looking at the category instead of just slugs.
The category is for Podcasts, and presently it displays slugs which:
...
0
votes
1answer
126 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)
...
0
votes
1answer
174 views
Show all posts in category
I am trying to show all posts in each category. I've been searching around and it seems I need to have either the category slug or term_id to do so, like the code below.
<?php ...
0
votes
0answers
49 views
Appending information from custom fields to the end of a slug /permalink
I have a specific custom post type "people" and for the urls/slugs/permalinks in this category, I would like to be able to append the information from 3 custom fields to the end. For example, if my ...
0
votes
1answer
595 views
Add category to custom post type automatically, using category slug
I'm using this excellent function to automatically add a category to my custom post type "Videos" on publish, if there's no category already chosen. This works great:
function ...
0
votes
2answers
177 views
Get taxonomy slug from url
Sorry I'm new to taxonomies & trying to learn quickly.
I've set up sectors and assigned a post to it. If I go to the post, I can see the URL has
www.mydomain.com/sectors/auto/
How can I get auto ...
1
vote
2answers
177 views
Is using %postname% for permalinks really that bad for performance?
I've seen in various places, including the Wordpress admin and on this page, that using string based identifiers is "strongly not recommended for performance reasons".
I understand that looking up a ...
1
vote
1answer
179 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
1answer
114 views
Get plugin download URL from slug
Is there a way to take a plugin slug (e.g. 'akismet') of a plugin that is NOT currently installed and somehow retrieve the download URL of the current version (e.g. ...
0
votes
2answers
207 views
Filtering front page by custom taxonomy using slug
I'm trying to sort by a custom taxonomy on my front page here: http://www.jamesfishwick.com/
That is, a user can pick a skill from the "Works" menu and sort. Example: selecting/filtering by "jQuery" ...
1
vote
1answer
131 views
Slugs as breadcrumbs for Pages
I´m trying to create a function that creates a breadcrumb trail of Page slugs outside of The Loop. These breadcrumbs show the path from the homepage to the current (sub)page.
For example, on the ...
0
votes
1answer
141 views
Setting a title on a Custom Post Type that doesn't support titles
I have a CPT called "profile" that only supports the editor and thumbnail. Each user is limited to posting just 1 profile.
I'm looking for a way to prefill the title and slug fields with the display ...
-1
votes
1answer
75 views
Create Slugs Programmatically from Post Content for Specific Post Type
Was looking at the below post which does something similar to what I am trying to do...it clears out the post_name (slug) and recreates based on post_title.
(for a specific post type)
Create slugs ...