I cannot create the same category name in Wordpress - wordpress

I need to make a category system according to years. For example
Iphone
Samsung
Xiaomi
Then I should assign years as subcategories to these categories.
2022
2021
2020
After all, there needs to be a structure like this.
Iphone/2020
Iphone/2021
Iphone/2022
Samsung/2020
Samsung/2021
Samsung/2022
Xiaomi/2020
Xiaomi/2021
Xiaomi/2022
In this table, the main categories are Iphone, Samsung and Xiaomi. When I want to open a subcategory for each main category, it creates a permalink problem. The problem I want to solve starts right here.
There is no problem with the first categories. The link structure is as follows.
example.com/iphone/2020
example.com/iphone/2021
example.com/iphone/2022
But when opening the 2nd and all other categories, the link structure is as follows;
example.com/samsung/2020-samsung
example.com/samsung/2021-samsung
example.com/samsung/2022-samsung
When I want to fix the permalink, I get an error like "the slug "2020" is already in use by another term".
There are many sites using this structure. However, I could not find how to do it. I think another structure is used for this process, not the wordpress category system. I would be very grateful if you help me.

The problem I think is in the fact that wordpress manages the categories all together, therefore the "2020" category exists, because you have already created it, you should see if you can use it as a subcategory

Related

WordPress Categories vs URL Structure

I just launched my first WordPress site, and I'm confused by WordPress' Categories feature. I would like to set it up so that I have three URL structures:
Regular posts display # mysite.com/post-title
Posts in the category "World" display at mysite.com/world/post-title
Posts in the category "Issues" display at mysite.com/issues/post-title
It looks insanely simple, yet it isn't working for me. I went into Dashboard > Settings > Permalinks and entered "world" where it says Category base. I don't know how to add "Issues," because you can apparently only add one category here.
Then I went into Posts > Categories and created two categories - World and Issues. I then created a new post and assigned it to the category World. (I also entered a lower case slug version.) But the post displays at mysite.com/post-title, not mysite.com/world/post-title.
In summary, I would like to be able to 1) create a category (e.g. World), 2) create a new post and assign it to that category, and 3) see that category represented in the URL structure (e.g. mysite.com/world/post-title).
Can anyone tell me what I'm doing wrong?

Linklist with most recent blog at top?

I would like to have a simple linklist of blogs with their latest entry, author, blog name, and date be listed in order of latest update. So, kinda like what Blogger has on their sidebars -- whenever they have linklists, it auto-reorders based on which blog has been updated recently (though it usually doesn't have summaries, just the title of the site).
What I'd like to do is plug in multiple RSS feeds into one place that just checks the latest entry in each feed and then reorders them
The magpie plugin or RSS plugin in EE currently only allows you plug in ONE feed. It will show the latest entry per blog if I repeat the magpie tags several times (one per blog), but that doesn't help with re-ordering, and also it's a bit messy.
Help? Thoughts?
UPDATE: I want to make sure that each blog is still featured even if the last post they've done is a year ago. A blog like that will be the last in the link list for example, while an entry/site updated this hour will be at the top. So for example, if I limit the linklist to 5, it's not going to show the 5 most recent entries, period, from just one site if that one site updated 5 times in one hour. It will show 1 recent entry per site.
Sample behaviour: like the Flickr Friends Page sorted by date and 1 photo per person. http://www.flickr.com/photos/friends/ Except this time, just titles of blog posts and the site they belong to, author, etc.
There is an RSS Aggregator EE Add-on available which combines feeds for you
http://devot-ee.com/add-ons/rss-aggregator
{exp:rss_aggregator:items feed_ids="6|7" limit="10" order_by="pub_date" order="desc" pub_date_format="m-d-Y g:ia" cache_timeout="60"}
<li>
{title}<br />
<small>{pub_date} - From {channel_title}</small><br />
</li>
{/exp:rss_aggregator:items}
You could do this using Yahoo! Pipes. In fact, I created one a bit ago: http://pipes.yahoo.com/pipes/pipe.info?_id=82e8b23b84bf2d6c3014f50c0f6b2f1d
Just call it with a comma-delimited list of RSS feeds and voila! It gives you the latest entry for all the RSS feeds, sorted in reverse chronological order.
Example:
http://pipes.yahoo.com/pipes/pipe.run?_id=82e8b23b84bf2d6c3014f50c0f6b2f1d&_render=json&feedurls=appleinsider.com.feedsportal.com/c/33975/f/616168/index.rss,feeds.foxnews.com/foxnews/latest?format=xml
So now that you have the feed's URL, you can pull out the individual entries using the REST module from Phil Sturgeon.
For those interested, here's how the pipe is setup:
Fairly sure Stash could handle this via set_list and get_list. I haven't tested this but perhaps something like:
{exp:channel:entries channel="feed_urls"}
{exp:magpie url="{url}" limit="1"}
{items}
{exp:stash:append_list name="feed_items"}
{stash:title}{title}{/stash:title}
{stash:pubdate}{pubdate}{/stash:pubdate}
{/exp:stash:append_list}
{/items}
{/exp:magpie}
{/exp:channel:entries}
{exp:stash:get_list name="feed_items" orderby="pubdate"}
<h3>{title}</h3>
<p>{pubdate}</p>
{/exp:stash:get_list}
https://github.com/croxton/Stash
What about using an entries loop with multiple channels, pulling lastest from that and stashing it. Then get the stash in the RSS feed? I think that would work.
You could probably do it with Datagrab because it lets you import XML feeds into your own site and then you'd be able to order them as EE channel entries.

Using custom wordpress taxonomies for aktivity-streams?

I'm working on a WordPress-Website with a project-custom post type. But the person I am doing this for, has some special, not very uninteresting questions and suggestions. I am not quite sure, weather this is possible, and if it is, than how I should do it:
I created a custom post type: projects. Its custom taxonomies are "genre"(tag), and "customer"(category). So, if you call a certain customer, you will get the customer-taxonomy page, with a little description of the customer, and all the posts, related to this customer. So far no problem, but he wants the posts to be ordered by genre. Genres means, Webdesign, Corporate Design, Printgraphics, etc..
Is it possible, to list all project-custom posts, related to the custom-taxonomy "customer", and order them by time and the custom-taxonomy "genre"?. It should look like..
Webdesign:
2012-05 - Projekt-title 2012-07 - other project title
print:
2012-04 - print project-title 2012-06 - any project-title
It is important, because He wants the Project-Posts to look like a activity-stream related to the customer, like social media services.
The other Questions is, weather I can somehow combine custom-taxonomies and standart post-taxonomies. The Idea is, to post a standard News-Article, writing about the new project Hes working on. And he wants this article to show up on the related customer page.
Is this possible? And if yes, how should I do it? If it isn't possible, is there any other good solution?

category url format in nopcommerce

I would like to know how I can make the url's for the categories static. For example http://localhost:3547/category/53-cellphones.aspx is what I have currently but yesterday it was http://localhost:3547/category/1-cellphones.aspx.
I want to know how can I make the number in the category name static, e.g. 1-cellphones.aspx to be like that all the time, I don't want to be changed tomorrow to 3-cellphones.aspx for example.
Is that possible?
Thanks
This is normally the id of the category in the database.
Can you check the Nop_Category table and check you don't have duplicate rows.

WordPress - How to assign a post a *main* category

Let's say I have a (fictious) post: 'Google and Tesla join to produce smart electric cars'
I want to classify it in multiple categories: 'IT', 'Automotive', 'Environment', 'Engineering'
But I want to make one of these categories the main one, let's say 'Automotive' in this case.
How can I tell WordPress that 'Automotive' is the main category and I want the URL to be something like 'http://www.mysite.com/automotive/google-and-tesla-join-to-produce-smart-electric-car'?
Your help is very appreciated!
Hmm.. I do not think you can do that. You can have child categories, but what you are asking (?) is to have separate parent categories and then assign one as the main one.
You could set Automotive as the category, and the remaining (Environment, Engineering) as tags, that would give you the url you want. Hope it helps.

Resources