Certain Categories appear empty on blog, but not through wp-admin

resolved (12 posts) (2 voices)

  1. lylaluray
    Member

    I have a site with three main categories (two with sub-categories). I have my site divided into different streams based on these categories. I have multiple posts in each category (all properly searchable and visible through the admin panel. My problem is that at any one time only two of these top categories are visible on my site. The other leads to a no results page. Even if I click on a post from the published posts list in the admin panel it takes me to an error page on the actual site.

    I have tried to correct this by replacing the offending category with a new one. This fixes that category but causes another to subsequently break.

    Any suggestions on what the problem could be and how to fix it? Is it some kind of database corruption? A problem with the Fusion theme?

    Many thanks!!

    Posted 4 years ago #
  2. Elliott
    Support

    Hello lylaluray,

    Do these categories have at least one post assigned to them? Try deleting your .htaccess file and then refresh your permalinks in Dashboard -> Settings -> Permalinks.

    Send us a link and deactivate all plugins.

    Posted 4 years ago #
  3. lylaluray
    Member

    Thanks. I can't find any .htaccess files, I do have posts in every category. I tried disabling all plugins and resaving permalinks to no effect. However, I have put the two problem categories under a new parent category. This seems to have fixed the problem, though I don't know why.

    I can't share a url for the site yet as it is currently local. If the problem comes back I will update this thread.

    Posted 4 years ago #
  4. lylaluray
    Member

    Well though my attempt worked for an hour the problem has now recurred, with both of these problem categories now not showing up anywhere on the actual site.

    Can you please advise how to find .htaccess files and how to refresh permalinks?

    Many thanks!

    Posted 4 years ago #
  5. Elliott
    Support

    It should be in your root Wordpress folder. Just delete it and then save your permalinks to the default setting.

    Check and make sure that you do not have any pages, posts, images, etc etc, with the same name as the category.

    Posted 4 years ago #
  6. lylaluray
    Member

    Thanks. I found and deleted the .htaccess file. I then reset permalinks, double checked no posts etc named as categories, all plugins are disabled, but the problem is still there. I can access the individual posts in the problem categories, which show up too in the all posts list, but can't view the selected category list. Each time I delete the file or the contents of .htaccess it reappears as previously (posted below).

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>

    # END WordPress

    I also tried the suggestions mentioned at wordpress http://codex.wordpress.org/Using_Permalinks. But no joy. It could be a problem with my php / apache setup I guess, but I have no idea how to fix or do anything with that. Any further ideas?

    Posted 4 years ago #
  7. Elliott
    Support

    Does this happen in the default theme? Send us a link.

    Posted 4 years ago #
  8. lylaluray
    Member

    No it does not happen with the default theme - ie everything works fine with the default theme. As mentioned, my site is local right now, so I cannot provide a link.

    Posted 4 years ago #
  9. Elliott
    Support

    Send us a link when you go live and we'll take a look.

    Posted 4 years ago #
  10. lylaluray
    Member

    I have now got my domain sorted. Please take a look at http://lylaluray.com and look at the reviews or blog categories from the menu / items on the front page. Some categories here now even go to a 404 page.

    Grateful for any assistance

    Posted 4 years ago #
  11. Elliott
    Support

    Your "review" category permalinks do not look right. Navigate to Dashboard -> Posts -> Categories and check the permalink for them. Try viewing the permalink for the category in your dashboard to see if it works there.

    Be sure to deactivate all plugins while testing.

    Posted 4 years ago #
  12. lylaluray
    Member

    It was nothing to do with the permalinks. I have now fixed it. It was because I had set my blog to exclude certain categories. Although this still allowed me to access these categories while using blog shortcodes, it did not make them visible when viewing category pages.

    Although I am happy to say that this was my fault in not stopping this, it also seems like there could be some either tweaking to the code to solve this.

    Posted 4 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme