But when I go to a category page like “Georgia” the URL shows /biz/biz
https://bippermedia.com/biz/biz/georgia/
why is this happening? how can I fix this?
]]>Trying to strike best balance of SEO, usability and futureproofing (for when i expand the store catalogue) – clothing, art prints & home decor online shop, I’m really struggling with the clothing…
The URL slugs for categories i’ve setup so far (questions below)
clothes
– mens-clothing
— mens-hoodies
— mens-shirts
— mens-t-shirts
— mens-long-sleeve
-womens-clothing
— womens-hoodies
— womens-shirts
— skirts
-kids-clothing
— baby-sleepers
— baby-grows
— boys
— girls
home & Decor
other Parent Cat 1
other Parent Cat 2
//QUESTIONS
1. Should all clothing belong to “clothes” parent category, what would be the benefit?
2. Will my URLs become to spammy? For example;
www.website.com/product-category/clothes/mens-clothing/mens-shirts/mens-t-shirts/product-name
3. I think the above is too long… which of the following would be better?
a/ www.website.com/product-category/clothes/mens/mens-t-shirts/product-name
c/ www.website.com/product-category/mens-clothing/mens-t-shirts/product-name
b/ www.website.com/product-category/mens/product-name-mens-shirt
d/ other, what?
4. Is it a good idea to rename woocommerce default ‘product-category’ to something short like ‘product’ or ‘category’ to save URL space?
5. If i create a ladies t-shirt, should it belong ONLY to “womens-shirts” category or should i belong to all categories up to master parent eg.
clothes
womens-clothing
womens-shirts
and when i type in the URL with the slug name, i just get an error page.
any thoughts…
]]>I cant to configure my wordpress ‘s
www.domain.com/category/categoryname
to
www.domain.com/categoryname
and
www.domain.com/category/categoryname/page/7
url to
www.domain.com/categoryname/7
how it is possible?
and
]]>Right now everything is flowing through one loop but I am updating so that only “news” goes to one page while all other “blog” type post go to the other page. I have done this using query_posts and category_name and slug. I have created two categories and named one news and one blog. I then can assign old post or future post to one of these categories as well as the category that it actually belongs.
So for example I might want a post to show up on the “blog” page but it is really an “Education” post and that is the category I would like to show up in the URL as my permalink includes %category% like so…
www.company.com/education/post-title-here
The catch is that I never want the “blog” or “news” category to show up in the URL so that old links are not broken and new links are consistent with the old ones.
The problem I think lies in if I create categories after I have created these two new categories as WP favors the category with the lowest ID to show in the URL.
Is there a way to eliminate these two particular categories from ever being able to show up in the URL?
The other option I think I have is changing the category ID manually which I do not feel comfortable doing. I have searched for a plug-in that would allow me to change the cat ID but was not able to find one that seemed safe. If I had a very clear explanation of how this worked I would be willing to give it a shot though.
Does anyone have a suggestion as to how I can eliminate those two categories from WP ever putting them within the URL if the cases mentioned actually do occur? I never want them to be included in the permalink… ever.
Hoping that I have explained this in a way that makes sense to everyone. Any suggestions would be much appreciated.
Thanks for your time all!
]]>Is it possible to have duplicate category and tag slugs? For example:
https://website.com/category/umbrella/
https://website.com/tag/umbrella/
…without it automatically adding a “-2” to the end of one of them? Why does WordPress not recognize the difference between categories and tags?
]]>I have a loop to get the post. It prints the title, content, the categories etc.
With <?php the_category(', ') ?>
i am getting the categories the post is in.
What i need now is to get the slugs of the categories the post is in.
since <?php the_category_slug(', ') ?>
doesn’t excist, i tryed to do it with get_terms.
I’ve got
$terms = get_terms('category');
foreach ( $terms as $term ) {
echo $term->slug.' ';
}
And it prints all the category slugs, how to get only the category slugs the post is in?
]]>Can anyone tell me how to make this happen?
]]>