MicrostockGroup Sponsors

Author Topic: Image Categories Disconnect  (Read 2200 times)

0 Members and 1 Guest are viewing this topic.

« on: August 02, 2013, 19:13 »
I've been testing my Symbio site with a small sample of images (maybe 15 in total).
Most image categories work properly, but I discovered two problems with some image categories.

1. Some images do not get included in the defined image categories. I can't see why some items do get included and some not.

2. For example, the dropdown animals image category shows no entries, whereas if you bypass the Dropdown Categories, the next screen shows 4 items in the animals category (in paranthesis)  - Animals(4)
What could be causing the disconnect and is there a way to sync those two displays of categories?
my website is http://advantica.com.stockphotos

« Reply #1 on: August 02, 2013, 19:54 »
Your menu is not pointing correctly to that animal category. It is looking in /category/animals/ whereas your hippo and coon are found in /image-type/animals-2/. I have no clear idea what might have caused this, though...

« Reply #2 on: August 02, 2013, 20:56 »
Thank you, Stephan, for spotting and pointing out the difference.

I thought, that I processed the animal images in the same way as the others. One possible difference is the SLUG. Slug for animals image keyword is "animals", whereas slug for animal image category is "animals-2". Does anybody know how are the slugs used and where are these definitions stored?

« Reply #3 on: August 02, 2013, 21:44 »
Thank you, Stephan, for spotting and pointing out the difference.

I thought, that I processed the animal images in the same way as the others. One possible difference is the SLUG. Slug for animals image keyword is "animals", whereas slug for animal image category is "animals-2". Does anybody know how are the slugs used and where are these definitions stored?

It has been discussed before somewhere that the keyword/category slugs need to be unique. In case you have keywords that match your category names trouble starts: WP automatically adds a "-2" to the later slug with weird outcome. e.g. a keyword with a slug such as animal-2 wouldn't show in search for "animal". Your case is the other way around. I can't remember having read someone else had issues like you but it could very well be the root of your problem.

To avoid such conflicts I have renamed all my category slugs to "image-category-whatever". I think this little extra effort has saved me a lot of headache.

« Reply #4 on: August 03, 2013, 00:29 »
I renamed the slugs in the image keywords, then in image categories, and it didn't help.
I deleted the "animal" category twice, deleted all animal images,  re-created the animal category, and re-uploaded the animal images.
The item structure is now consistent, all image category URL links have now the same syntax:
but the problem remains the same.

For the animals - the image category was "animals" and image keyword "animal". Automatically generated slugs were animal and animals-2

Interestingly, the nature category was "nature" and image keyword 100% identical "nature", (no singular and plural differences there) slugs were nature and nature-2 and in this case,  the problem didn't occur, those image categories display correctly.

So, I renamed the "animals" category to "animal" to  make it same as the keyword, deleted and reuploaded the images, but that didn't help either.

I'll check tomorrow for other matching keywords and category pairs.

« Reply #5 on: August 03, 2013, 02:00 »
Maybe try this:
Edit slugs of ALL categories to something like "animals-images", "nature-images" and so on, to avoid conflicts with keyword slugs.
Then go to Stock Images->image keywords in admin area, find and edit all keywords slugs, that end with -2 or other number. Change slug animal-2 to animal, nature-2 to nature and so on.
« Last Edit: August 03, 2013, 02:02 by ajt »

« Reply #6 on: August 03, 2013, 02:15 »
The categories menu links still don't point to same url as categories (as on categories page). How did you configure your menu? That's maybe where the actual problem lies...

« Reply #7 on: August 03, 2013, 04:51 »
Thanks, Stephan

1. It was indeed in the the Menu definition. All menu items had "Image Categories" in the Menu Item field, whereas the Animal line had "Categories" as the Menu item. I can't remember what I did differently and where the "Category" came from.

I deleted the old Animal image category at menu item, created a new Animal Image Category, and then added it to the Menu.  It works properly now, and it picked up automatically all existing images which were defined in Animal image category.

2. As to the possible mixup between the image keywords and image categories with the same name, now, I don't think that was part of the problem. As long as there is at least one character different in the corresponding two slugs, the system will properly differentiate, so you don't have to rename the slugs.

Amanda, if you want to add a Troubleshooting section to your Symbioguides, you could mention this situation and fix there.

« Reply #8 on: August 03, 2013, 11:46 »
Glad to hear you could solve your problem.

Don't be too sure about your point 2. AFAIK the problem of images with "...-2" slugs not showing in search is still not solved.

« Reply #9 on: August 03, 2013, 15:19 »
1. Just to clarify - my problem was related to the image categories drop down or image category indexing - not to the image keywords.

2. I wasn't aware of any problems with Search. I couldn't find any old posts describing this problem. Can you point me to those posts?

I just tested the search with my limited image collection, and couldn't find any problems. As far as I can see, the Search will look at the keywords only (exact wording).
For example, if an animal picture is in the Nature category, but was not keyworded with "nature", the search won't find. However, you would find it in  the Nature image category. After adding the keyword "nature" to the image, the Search will find it.

However, there is a problem with singular and plural forms.
If I specify "animal" as keyword, and then search for it as "animal", the Search will find it. If I search for "animals", I am out of luck.
How should we deal with this problem? Include both plural and singular forms in the keywords, or hope that the Search will evolve to be able to recognize both forms?   

3. What happens if you rename the slug from nature-2 to something else halfway through your uploading (or a year from now)? Will you have to delete and reupload the related images uploaded prior to the slug change?

4. Lastly, is this indexing structure included in Leos' Symbiostock theme or is it an integral part of the wordpress (taxonomy and keyword/tag indexing)?

« Last Edit: August 03, 2013, 15:41 by LesPalenik »

« Reply #10 on: August 03, 2013, 16:16 »
1. I understand that

2. I can't find where I came up first. Maybe in one of the endless bug stomping threads? But it has been discussed later again. e.g. here (briefly): http://www.microstockgroup.com/symbiostock-technical-support/darn-categories

Added: I checked your website again and found e.g. that lovely tiger having a keyword "nature" with slug "nature-2". But doing a search with keyword nature found the tiger. I can only guess that meanwhile Leo dealt with the issue and it's no problem anymore.

I'd wait for Leo's premium plugin and see what the new search can do. Also the batch editor of the coming premium plugin should make adding/changing keywords much easier.

3. I have only edited the keyword slug of those keywords affected. That fixed the search for me. No need to delete and reupload images.

4. I am not at all a WP expert. So I am guessing here: Our images are custom type posts so their taxonomy is custom type as well (although with most (all?) the features (and troubles) of the WP standard taxonomy). I guess that is where you got confused in the menu configuration?
« Last Edit: August 03, 2013, 21:17 by Pilens »


Related Topics

  Subject / Started by Replies Last post
1 Replies
Last post August 29, 2007, 10:49
by pr2is
11 Replies
Last post December 21, 2013, 03:56
by lucato
16 Replies
Last post September 10, 2013, 01:47
by FiledIMAGE
12 Replies
Last post December 23, 2013, 15:01
by lucato
2 Replies
Last post December 23, 2013, 01:57
by lucato


Mega Bundle of 5,900+ Professional Lightroom Presets

Microstock Poll Results


3100 Posing Cards Bundle