Category link shows no posts
-
Hi there,
Having an issue with a specific Category showing ‘0’ Posts under Categories/Dashboard although there’s a lot of posts under that Category.
Also, when I view a post under the Category in question and I click on the Category link I get no posts showing but a message “Sorry, no entries found.”
The other Categories show up fine, just this one titled ‘Video’ found at http://ayebro.co.nz/blog/video/
I’ve tried renaming the Category to a few different names/slugs with no avail.
Will appreciate it if someone can shed some light on this issue.
Thanks in advance.
-
category.php http://pastebin.com/YR9eSB4w
Video category in admin shows ‘video’ as slug and 0 posts
‘Plugins’ in admin does not show “Must-Use”
Sorry, should’ve put the other posts in 1, my bad.
Video category in admin shows ‘video’ as slug and 0 posts
Well that’s why http://ayebro.co.nz/blog/video/ says “Sorry, no entries found.” There are no posts filed in the video category.
The thing with that is, it use to show posts under that category, but not sure how it changed to 0 and every time I post a new video, I always add that to the Video category, but it still shows 0, not sure why.
The most recent video posts was posted yesterday and put under the Video category. Would you know why it shows up as 0?
Do you happen to have more than one video category?
It could be a plugin conflict preventing the category from saving. I’d try disabling all plugins, editing an existing post you want to be in the video cat, add it to the video cat, and save the post again. See if it shows up then. If so, you’ve got a plugin conflict of some kind. Go through the steps I mentioned earlier to find out which one.
If that’s not the culprit, I’m really curious to know what it is.
Sweet, will give that a go, cheers.
Edit: Nope, I currently have one Video category.
Still no luck 🙁 I might have to create a new video category and go through the whole blog posts to put video posts into the new category.
I just created a new video category and posted a test post with the new video category and it shows fine. I’m still lost to how the original video category changed to 0.Thanks for your help btw, much appreciated 🙂
Something is definitely fishy.
You can enable debug in the wp-config.php file to see if any errors are happening when you save the video posts.
Adding this to wp-config.php turns on debugging. It will write any errors and notices to /wp-content/debug.log. You might find some interesting things there. If so, share them on pastebin.
// Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0);Did you ever figure out what was going on here?
Seeing the same issue today on a site running wordpress 3.8.1 and genesis framework 2.0.2 hosted on wpengine.
Weirdest thing. all other categories are fine.
When I look at All posts, I can see posts with my category, but it won’t let me filter on that category(returns 0).
Troubleshooting
I tried adding a new category through quickedit, hit update.
Checked my category list and all (but the post I just edited) in the categories showed up again. (partial fix)
Then I noticed that my tags for that same article were hosed up. I can’t add tags to this particular article (the most recent).
checked my error logs, did not see anything.
turned debug on, then went and tried to add another tag.
came up with this gem
WordPress database error: [Incorrect key file for table './wp_vivmag/wp_terms.MYI'; try to repair it] SELECT tt.term_id, tt.term_taxonomy_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy as tt ON tt.term_id = t.term_id WHERE t.name = 'Cruise' AND tt.taxonomy = 'post_tag' /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */ WordPress database error: [Incorrect key file for table './wp_vivmag/wp_terms.MYI'; try to repair it] SELECT term_id FROM wp_terms as t WHERE t.name = 'cruise' /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */ WordPress database error: [Incorrect key file for table './wp_vivmag/wp_terms.MYI'; try to repair it] SELECT term_id FROM wp_terms as t WHERE t.name = 'cruise' /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */ WordPress database error: [Duplicate entry '17972' for key 'PRIMARY'] INSERT INTO <code>wp_terms</code> (<code>name</code>,<code>slug</code>,<code>term_group</code>) VALUES ('Cruise','cruise',0) /* From [vivmag.com/wp-admin/admin-ajax.php] in [N/A] */ Notice: Undefined index: psp_edit in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1206 Notice: Undefined index: psp-meta-nonce in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1207 Notice: Undefined index: psp_edit in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1206 Notice: Undefined index: psp-meta-nonce in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1207 Notice: Undefined index: psp_edit in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1206 Notice: Undefined index: psp-meta-nonce in /nas/wp/www/cluster-1233/vivmag/wp-content/plugins/platinum-seo-pack/platinum_seo_pack.php on line 1207to be continued….
🙂
Ran repair on those tables in phpmyadmin.
That seemed to fix things, although it did erase, zero out my category and tags on that one post.
Afterwards, I was able to add categories and tags again.
So the long and short of it, I suggest running repair on your DB 🙂
The topic ‘Category link shows no posts’ is closed to new replies.