Hello ranjan154 can you please provide me with an example of your problem so that I can assist you.
Kind regards
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
Hi
Please check following link http://houstonfineartfair.com/media-sponsors/
As you can see there are 25 items in this category “media-sponsors”, the last three items I have inserted by hardcoding in CataBlogItem.class and CataBlog.class files.
$gallery_item_ids = $gallery->getItemIds();
Just after this I added.
array_push($gallery_item_ids, "1050");
array_push($gallery_item_ids, "1070");
array_push($gallery_item_ids, "1071");
I had to do this because at the backend the total count of items in media-sponsors is not increasing after 22, though I am to add new items like 1050, 1070 and 1071.
So somewhere the category assignment has stopped I guess, I searched in the database and I found that wp_posts table the record holding this category has items only till 22.
a:22:{i:0;s:3:"445";i:1;s:3:"446";i:2;s:3:"447";i:3;s:3:"448";i:4;s:3:"449";i:5;s:3:"450";i:6;s:3:"451";i:7;s:3:"452";i:8;s:3:"453";i:9;s:3:"454";i:10;s:3:"455";i:11;s:3:"456";i:12;s:3:"457";i:13;s:3:"458";i:14;s:3:"459";i:15;s:3:"460";i:16;s:3:"461";i:17;s:3:"462";i:18;s:3:"463";i:19;s:3:"464";i:20;s:3:"466";i:21;s:3:"465";}
This field should have been updated as I added new items in this category that didn’t happened to somewhere the category assignment/updating of items has stopped after 22.
Please help me out..
Hi, I did a test of my own. I created 36 images and added 29 images to a category “zynga1”. I then added the catablog code to a page “sample page”
The code is:
[catablog category="zynga1" template="gallery"]
Here is the link http://mbrsolution.com/wptest/sample-page/
I was able to add 29 images without a problem. Have a look at your code and make sure that all your images are added to the same category.
Kind regards
Can you guide which that functions/line of code that assigns an image to categories? As I said it was working fine for me too..till 22 item.
Hi ranjan154, I was wondering how are you going with my instructions above?
Hi,
Thanks for writing but the link has just instruction on how to set up catablog.. this all i know. I need some help at the code level, I need to know when a image is being assigned to category while in the edit, it must be updating the total number of items in the categories, as i have mentioned in my post above.
a:22:{i:0;s:3:”445″;i:1;s:3:”446″;i:2;s:3:”447″;i:3;s:3:”448″;i:4;s:3:”449″;i:5;s:3:”450″;i:6;s:3:”451″;i:7;s:3:”452″;i:8;s:3:”453″;i:9;s:3:”454″;i:10;s:3:”455″;i:11;s:3:”456″;i:12;s:3:”457″;i:13;s:3:”458″;i:14;s:3:”459″;i:15;s:3:”460″;i:16;s:3:”461″;i:17;s:3:”462″;i:18;s:3:”463″;i:19;s:3:”464″;i:20;s:3:”466″;i:21;s:3:”465″;}
Its not adding now the new items in this category, I am not able to reach in the code, where the above data is serialized and saved in table wp_posts, so that I can check why the new items are not getting assigned.
That’s the problem, I can install the plugin and try again, but I will have to add all items again, I dont want to do it as of now, so I hardcoded the new items. I know I can’t do this for long.
Please suggest.
Regards
Ranjan
If you hard coded the new items it defies the purpose of the plugin. I would revert back to the original file another words remove the hard coded code. Upload through ftp the default file that you hard coded. And try adding another image and see what happens.
When I did my test as mentioned above everything went smooth without a problem. There could be a conflict with another plugin that you might have installed after you had CataBlog running and this could also be causing this issue.
Another possibility is your CataBlog plugin could be corrupted and if that is the case then you best reinstall the plugin. If you are going to reinstall the plugin make a copy of your images folder in your server, uninstall CataBlog and reinstall it again. Set it up as you normally would move the image folder you copied on your server back to the same path you had it before. Make sure that CataBlog can detect the image folder and test it again.
I hope this helps you.