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
10 views

Change slug of registered custom post type in child theme

I successfully renamed a custom post type registered by my parent theme in my child theme using this method. The problem is, my permalinks haven't changed. So when I change portfolio to homepage and ...
1
vote
1answer
17 views

Wordpress not adding -2 to slugs when saving post as draft

I have a client that saves pretty much everything as draft before posting it on the website. Thing is, he has a 'Jobs' section, where the name of the job offers might repeat. If they are looking for ...
0
votes
1answer
46 views

Can't remove slug in url

I need remove slug movie from site.com/movie/mymoviename I've tried remove 'slug' => 'movie', 'with_front' => FALSE,), from code, but this don't help's me. Here a code <?php /* Movies post ...
0
votes
0answers
24 views

Have the same sub-category and slug for two different parent categories?

Just want to make sure: I have category 1, with subcategory 'resources'. Can I have category 2 also with a 'resources' subcategory? I would like the slug to be the same in both categories.
0
votes
2answers
25 views

Custom walker with hashes instead of links (one-page layout)

I am currently developing a one-page based layout with WordPress where the actual content is split up into separate pages in the backend, which are all knit together to a one-page layout in my ...
0
votes
0answers
5 views

Change “Team” slug on a template post type

thanks in advance. I have a great template that works well for our business. However, I don't want the team members page slug to be /team/[name] - instead, I want it to be /barristers/[barrister ...
0
votes
1answer
36 views

Change Slug of a Custom Post Type

I use a plugin that creates a custom post type with a slug that I am wanting to change. I don't want to overwrite the plugin files, so I'm wondering how I can change the slug using a separate ...
0
votes
2answers
19 views

generate unique slug while inserting post

How can i create unique slug while inserting a new post.. I know i can query posts and compare the records to create unique slug but I want to insert a post with unique slug at the same time. Lets ...
0
votes
0answers
6 views

web.com/post/post-title redirects to web.com/post-title

I'm having a complain of the SEO guy because a post url is not like this web.com/post/post-title But like this web.com/post-title And even web.com/post/post-title redirects to web.com/post-title ...
0
votes
0answers
19 views

Weird slug in archives permalink

All my wordpress installs (and some others, as I see) have the archive based index in the following format http://example.com/date/2015/06/02. But most current installs out there display it as just ...
-1
votes
1answer
45 views

Post as frontpage - avoid duplicate content

On one of my WP sites I display a single post on the homepage. It's hard coded in the index.php like: If is home then show post with ID X But now I have the post's content on the homepage but ...
0
votes
0answers
22 views

Multiple slugs for a Custom Post Type

A custom post type can be registered with one slug (e.g. products) register_post_type('products', $args); How can I add multiple slugs to the same Custom Post Type? ...
0
votes
0answers
21 views

404 suggests posts instead of showing custom 404 when the url is not home

I have a custom 404 witch works well when you write the url like www.site.com/randomCrapAbC but when there is post-type or category in the slug, wordpress tries to suggest post in that category ...
0
votes
1answer
22 views

Generate slug and meta data if meta field is empty

I am creating a current vacancies feature in a client site, and am struggling on one area. I want to have a slug generated from a reference number, rather than the post title. This, I have set up. ...
0
votes
3answers
74 views

php string inside shortcode does not work

I want to automatically get products from woocommerce for a chosen brand, inside a brand's listing on a other part of the site using Sabai Directory. this <?php ...
0
votes
0answers
32 views

Get full control over custom post type url

The situation I have a custom post type, lets call it 'CP', which has two parent categories named 'companies' and 'category'. Posts of type CP can only have one company and multiple categories. So, ...
0
votes
0answers
19 views

Removing base slug from hierarchical custom post type on a WordPress Multi-site

So, I’ve been trying to remove the base slug from a hierarchical custom post type on a multi-site build for the past week or so, and haven’t found anything that actually works yet. The post type is ...
0
votes
0answers
57 views

Remove Custom Post Type slug from url, two CPT

I have 2 custom post types hilp-a and hilp-b. I want to remove custom post type slug from the url. e.g: test.com/hilp-a/test to be test.com/test and test.com/hilp-b/btest to be test.com/btest I ...
0
votes
0answers
11 views

Virtual parent in hierarchy for certain categories

I have a website where some posts go into the 'News' category and all the others are dispersed throughout other categories. There's a 'Blog' page set up under Settings>Reading which uses a customised ...
4
votes
1answer
72 views

Handle category name URL rewrite before different post type slugs

I went over a hundred similar topics here which were close to what I need, but unfortunately I wasn't able to fine tune this so apologies if it's a duplicate. I have a several post types (such as ...
1
vote
0answers
36 views

wp_update_post adding a -2 to the post slug

I've recently created a php file that is creating posts using the wp_insert_post function. This is working great and its inserting the post as it should do. I am leaving out the post title as I want ...
1
vote
2answers
101 views

Exclude category by slug for for each loop

I am trying to exclude some categories from a for-loop. <?php $categories = get_categories(array('exclude' => 'apps, windows')); ?> <?php foreach ($categories as $category) : ?> ...
1
vote
1answer
34 views

Get posts with at least one category in common with current post?

In single.php : I want to get all posts with at least one category in common with the current post. I tried reading through the wordpress codex documentation but I found it rather confusing (I'm ...
1
vote
1answer
32 views

Change post slug but keep old one

I have thousands of posts on my site which are created automatically. Some of them have duplicated titles. I'd like to add some keywords to their slugs, so URLs like domain.com/post-title/ ...
0
votes
1answer
40 views

wp_update_term not creating new unique slug

I want the slug to be recreated every time the term name is updated so it accurately reflects the name. wp_update_term(10, 'artists', array('name' => 'my new name')); The documentation ...
1
vote
2answers
57 views

Removing the redirect after changing a page's slug

On one of my pages I changed the slug to form a different URL. E.g. Old: http://example.com/old-slug New: http://example.com/new-slug WordPress has done it's thing of redirecting ...
0
votes
1answer
65 views

Using page slug in wp_query

I'm currently in the process of building out a site for a legal firm that's a client of ours. We have a two custom post types, attorney's and cases, that we need to link together in various areas ...
0
votes
1answer
42 views

Why does post-slug not get saved for drafts?

I am trying to get the value of the 'new-post-slug' (the bit that you can edit to customize your slug for a post, but bizarrely doesn't have a 'name' attribute as you'd expect a form field to have ... ...
0
votes
0answers
10 views

Image URL Recently became Image Name and Took Page URL of Same Name

With a recent update to either wordpress, my theme or the Yoast plugin, we realized that any image with the same name as a page on our site has taken over the URL of the page. When we build out the ...
0
votes
1answer
52 views

403 forbidden on one page only

I can't access http://www.plantea.com.hr/biljke/ The only error i get is Forbidden You don't have permission to access /biljke/ on this server. This is regular hierarchical category for post. I ...
0
votes
0answers
27 views

Best way to remove slug from custom type?

I need to remove a certain slug from a custom type item in Wordpress. Just now my URLs are like this: http://example.com/item/random and I want them like this: http://example.com/random I have ...
1
vote
1answer
57 views

How do I change attachment slug from name to id

I need to change the slug of the attachment post. Currently, it is showing attachment name , I want it to be replaced by id of attachment. Edit : Thanks to suggestion by TheDeadMedic, I am now ...
1
vote
2answers
58 views

Can I have two child pages of different parents with the same name?

I have two pages - new.hillsong.com/australia/sisterhood - new.hillsong.com/hills/sisterhood Both pages are displaying the content for the /hills/sisterhood site but they are different pages with ...
0
votes
2answers
38 views

Custom templates vs page-slug

I've currently been using the slug to set the page template, using the normal hierarchy For example, if I wanted to change the page template for http://www.example.com/about-us, I would edit ...
0
votes
1answer
33 views

International characters in slugs to redirect to

I would like to add special Hungarian characters to slug. Also in the slug of the post, and in taxonomy. . Eg "kér", "ács" etc. This slug then applied also in the URL. Is this possible?
0
votes
0answers
47 views

Change order custom taxonomy

I've created a custom taxonomy BH Job Regions . Now I would like to change the order of the terms in my taxonomy list. Is there a plugin or so that I can do this in my backend? Drag the terms in ...
4
votes
1answer
143 views

Combining Multiple Taxonomies in one URL

I'm creating a complex site with a product catalog with two custom taxonomies. They are Brands and Types. Brands - Canon - Toshiba - HP Types - Printers - Scanners - Multifunction I need a page ...
0
votes
0answers
29 views

Show only one of the categories of a post in the breadcrumb?

How does wordpress choose which category to display in the permalink if the post has multiple categories? I'm trying to display only a single category which wordpress included in the permalink ...
0
votes
0answers
48 views

Get custom post type slugs in javascript in header

I am using the following javascript to show and hide various divs on hover: <script type="text/javascript" language="JavaScript"> function HideContent(d) { ...
0
votes
0answers
24 views

How to change comment-page-1#comment-25 to any string?

How can we change the slug "comment-page-1#comment-25" to somthing like review-page-1#review-25
4
votes
3answers
186 views

Stop WordPress from reserving slugs for media items?

I am experiencing some odd behavior, that apparently happens "out of the box" with WordPress. If I upload a file through the media manager called: services.jpg; then go try to create a page with the ...
0
votes
0answers
48 views

Blog post URL redirects to a Page URL who's slug is a prefix of the post slug.

I have a page with slug 'what', and a blog post with a slug which begins with 'what' (ie. 'what-is-this-blog-about'). For some reason when navigating directly to the blog post URL the user is ...
0
votes
0answers
24 views

wp_update_term updating slug despite declaring it in the arguments

I am using wp_update_term to update term. Term data before update: Array ( [term_id] => 174 [name] => Hello Casino3 [slug] => hello-casino [term_group] => 0 ...
0
votes
0answers
59 views

How to disable special character sanitizing for slugs

We are trying to track specific blog posts that are shared on social media sites and tech blogs. I selected Google Analytics for this and using Google UTM URL builder, I created a custom campaign ...
3
votes
1answer
110 views

Rewrite rule page url with category

I have enabled the category box for pages with this: // Add to the admin_init hook of your theme functions.php file add_action( 'admin_init', 'page_categories' ); function page_categories() { // ...
0
votes
0answers
120 views

Uppercase vs. Lowercase page slugs

We are migrating a site to WordPress from another platform. An issue came up with the URLs--some are uppercase, some lowercase. I allowed uppercase using this solution: How can I make Capital letter ( ...
0
votes
0answers
129 views

Wordpress Polylang - Use same url slug on different languages [closed]

Just like this topic, I'm trying to create two pages with the same url, like this: domain.com/pt/downloads domain.com/en/downloads But it seems like polylang doesn't support this. Is there ...
1
vote
1answer
19 views

Rewrite slug for CPT

I have made and registered a CPT called 'generic'. When I set a CPT page in the menu, the address is www.sitename.com/generic/pagename I want to make the slug for this CPT simply be ...
0
votes
0answers
35 views

Images name = post slug

I am stuck at finding a way to rename images while I uploading them to my post. For example: If my post slug is wordpress-stackexchange, I want my images name will be changed automatic to ...
0
votes
0answers
79 views

custom post type archive slug vs. custom page template

I registered a custom post type for events and now I asked myself how to handle upcoming events and events in the past properly. By now, I'm displaying upcoming events on a custom page template I ...