The slug tag has no wiki summary.
1
vote
2answers
60 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
103 views
custom page url slug needs illegal ?id=1 for javascript
I have created portfolio page which contains a image-slid-menu for navigation. For an menu item to appear as open, javascript gets instruction like ?id=0 appended to the url. for instance ...
0
votes
2answers
127 views
Custom post types archive redirect
I had a custom post type with slug as (sometext) which I changed to (someothertext)
And it works great
So for example :
my posts with urls like
http://localhost/sometext/innerposts
gets ...
0
votes
2answers
57 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 ...
2
votes
1answer
120 views
Custom Post Type - Same Post Name, Different Post Type
I have 4 Custom Post Types:
Services
FAQs
Prices
Before and After
I want to be able to have the same post names within each of these post types, example:
Services
Skin ...
2
votes
1answer
508 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
207 views
Using Custom Fields in Custom Post Type URL
I'm developing a car site that has showrooms. Each showroom needs it's own custom URL based on it's location. The location (City and County/State) is already inserted as two custom fields. So for ...
1
vote
1answer
116 views
Rewrite post type slug only for child theme
I'm in multisite where some blogs share the same parent theme for maintenance reasons. All my cpts come from that parent theme, but I would really like that, for one of the blogs, it had an URL mask.
...
0
votes
1answer
53 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
33 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
227 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
106 views
Set a custom post type's title and slug to match the current date
I have seen similar questions asked, but mine is a little different. I want to register a post type called 'minutes' that doesn't allow you to add a title or a slug, but when you publish (or autosave) ...
0
votes
1answer
101 views
Using Same Slug With Multiple Post Types
My Permalinks are the std %postname%. I have several custom post types, eg. 'docs'.
function docs_init() {
// create a new taxonomy
register_taxonomy(
'docs_tax',
'docs',
array(
'label' => __( ...
0
votes
1answer
70 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
95 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
359 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
302 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
1answer
52 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 ...
0
votes
1answer
351 views
How to prevent duplicate slugs for wp_insert_post?
I have a function that creates a page when I create a post (so as to construct parent-child relationship trees).
I'm using the $title of the post to create the page and this also creates a duplicate ...
2
votes
0answers
69 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
0answers
130 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
101 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
54 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
88 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
20 views
Add a prefix term in a custom taxonomy slug
I am looking to rename the slug of a custom taxonomy when inserting a new term, adding to the default slug a prefix.
For example, if the term name is "something" I want the slug is "prefix-something" ...
0
votes
0answers
38 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 ...
0
votes
0answers
53 views
Filter BuddyPress Member Domain Slug
BuddyPress uses the Username(login name) as the member domain slug. (mysite.com/members/sarah)
I would like to filter the way BuddyPress handles this and set it to use the Nickname(nicename) instead.
...
