LeeOl
asked on
Catagories doesn't work on wordpress asthete theme
Since I upgraded worpress 3.2.1 on my website backyardhencam.com. (theme is "asthete"), I have not been able to get categories to work. When you click on the catagories on the right side widget, you get a 404 message. Also, the tags and catagories at the bottom of each post do not show.
I think it may have something to do with the permalinks that are yr/mo/name of post.
I am a real novice and will have to be helped if I have a code problem.
I think it may have something to do with the permalinks that are yr/mo/name of post.
I am a real novice and will have to be helped if I have a code problem.
I noticed that you removed the "category" from the permalinks, so maybe it's a problem with the htaccess, can you post it here, so i can take a look at it, please?
The other thing you can try is to switch the permalinks back to default, save it, then switch them to your preferred structure. Sometimes that resolves permalinks issues post-upgrade.
If not, then please show the contents of your .htaccess file as PragmatiCoder suggests.
If not, then please show the contents of your .htaccess file as PragmatiCoder suggests.
ASKER
Thank you so much for responding. I've been playing around trying to get this to work and may have inadvertently removed something. I'm sorry to admit that I don't know where the htaccess is? Is this the php code in "Editor" on my dashboard. I'm going to copy the php code on categories for you below.
I have switched the permalinks to default, saved it, and switch them back. I have reloaded 3.2.1 wordpress and latest version of theme. I have tried a default theme and it worked so this must be a problem on my theme.
This is the code for "category". It this isn't what you want, please tell me where to find htaccess.
<?php
$aesthete_options = get_option('aesthete_optio ns');
if ($aesthete_options['catalo gue_catego ry'] > 0
&& (
is_category($aesthete_opti ons['catal ogue_categ ory'])
|| cat_is_ancestor_of ($aesthete_options['catalo gue_catego ry'],$cat)
)
):
include(TEMPLATEPATH . '/category-catalogue.php') ;
elseif ($aesthete_options['portfo lio_catego ry'] > 0 && is_category($aesthete_opti ons['portf olio_categ ory'])):
include(TEMPLATEPATH . '/category-portfolio.php') ;
else:
?>
<?php
get_header();
?>
<div id="leftcontent">
<?php echo single_tag_title('', false);?>
<?php
$aesthete_options = get_option('aesthete_optio ns');
if (is_home())
{
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
//query_posts("cat=$cat&pa ged=$page& posts_per_ page=$post s_per_page ");
query_posts("cat=-${aesthe te_options ['portfoli o_category ']},-${aes thete_opti ons['catal ogue_categ ory']}&pag ed=$page&p osts_per_p age=$posts _per_page" );
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>" class="h1"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if (!$aesthete_options['hide_ post_info' ]):?>
<div class="info">
<span class="date"><?php the_time('j F Y') ?></span>
<div class="act">
<span class="comments"><?php comments_popup_link(__('Co mments (0)'), __('Comments (1)'), __('Comments (%)'),''); ?></span>
<?php edit_post_link(__('Edit This'), '<span class="editpost">', '</span>'); ?>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<?php endif;?>
<div class="storycontent">
<?php the_content(__('(more...)' )); ?>
</div>
<div class="feedback">
<?php //wp_link_pages(); ?>
<?php //comments_popup_link(__(' Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
</div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php if(function_exists('wp_pag inate'))
{
wp_paginate();
} else
posts_nav_link(' — ', __('« Previous Page'), __('Next Page »'));?>
</div>
<?php get_sidebar(); ?>
<?php endif;?>
<?php //get_sidebar();
?>
<div class="clear"></div>
<?php get_footer(); ?>
I have switched the permalinks to default, saved it, and switch them back. I have reloaded 3.2.1 wordpress and latest version of theme. I have tried a default theme and it worked so this must be a problem on my theme.
This is the code for "category". It this isn't what you want, please tell me where to find htaccess.
<?php
$aesthete_options = get_option('aesthete_optio
if ($aesthete_options['catalo
&& (
is_category($aesthete_opti
|| cat_is_ancestor_of ($aesthete_options['catalo
)
):
include(TEMPLATEPATH . '/category-catalogue.php')
elseif ($aesthete_options['portfo
include(TEMPLATEPATH . '/category-portfolio.php')
else:
?>
<?php
get_header();
?>
<div id="leftcontent">
<?php echo single_tag_title('', false);?>
<?php
$aesthete_options = get_option('aesthete_optio
if (is_home())
{
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
//query_posts("cat=$cat&pa
query_posts("cat=-${aesthe
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>" class="h1"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if (!$aesthete_options['hide_
<div class="info">
<span class="date"><?php the_time('j F Y') ?></span>
<div class="act">
<span class="comments"><?php comments_popup_link(__('Co
<?php edit_post_link(__('Edit This'), '<span class="editpost">', '</span>'); ?>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<?php endif;?>
<div class="storycontent">
<?php the_content(__('(more...)'
</div>
<div class="feedback">
<?php //wp_link_pages(); ?>
<?php //comments_popup_link(__('
</div>
</div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php if(function_exists('wp_pag
{
wp_paginate();
} else
posts_nav_link(' — ', __('« Previous Page'), __('Next Page »'));?>
</div>
<?php get_sidebar(); ?>
<?php endif;?>
<?php //get_sidebar();
?>
<div class="clear"></div>
<?php get_footer(); ?>
>> I've been playing around trying to get this to work and may have inadvertently removed something.
Playing around with what, precisely?
>> I'm sorry to admit that I don't know where the htaccess is?
It's in your site's root folder. You will need to use an FTP program to get it.
>> I'm going to copy the php code on categories for you below.
Nope, this isn't helpful.
Playing around with what, precisely?
>> I'm sorry to admit that I don't know where the htaccess is?
It's in your site's root folder. You will need to use an FTP program to get it.
>> I'm going to copy the php code on categories for you below.
Nope, this isn't helpful.
ASKER
O.K. thanks. I guess that is on the server site. I haven't used the FTP but I guess it's about time I learned.
>> I guess that is on the server side
>> it's about time I learned.
Yep. Everyone with a web site needs to know how to use FTP. Even better if you learn enough to get to the shell and move around there.
>> it's about time I learned.
Yep. Everyone with a web site needs to know how to use FTP. Even better if you learn enough to get to the shell and move around there.
ASKER
Hello. I've set up an FTP account at Bluehost. I think you will be able to see .htaccess or am I off? Should I post the login name and password here?
>> Should I post the login name and password here?
NO! NO! NO! NEVER! BAD USER! BAD! NO BISCUIT!
These posts are public to the world via Google. NEVER give a password over a web forum. Access your site via FTP, download the .htaccess file, open it in Notepad, copy/paste contents here.
NO! NO! NO! NEVER! BAD USER! BAD! NO BISCUIT!
These posts are public to the world via Google. NEVER give a password over a web forum. Access your site via FTP, download the .htaccess file, open it in Notepad, copy/paste contents here.
ASKER
Ha! I thought I might that kind of reaction. Guess that wouldn't be a wise thing to do.
I've gotten really bogged down just learning how to do basics. I opened a FTP account but now can't find any filed named .htaccess. Could it be named something else like WP-admin.? It is full of files that are in code but don't know which you need to look at.
I've gotten really bogged down just learning how to do basics. I opened a FTP account but now can't find any filed named .htaccess. Could it be named something else like WP-admin.? It is full of files that are in code but don't know which you need to look at.
No, it's in the level above wp-admin. It might not be visible to FTP users though which means you need to be able to log into the shell or get your ISP to help you.
ASKER
I'm sorry to be wasting your time, Jason. I'm beginning to believe that I do not have the basics to properly utilize the experts on Experts Exchange.
Could the file you are looking for be public_html? I hesitate to call the host again. I've made five calls to them today. They were able to help me set up a FTP account but that is about all. I guess I just don't know what I am looking for.
Could the file you are looking for be public_html? I hesitate to call the host again. I've made five calls to them today. They were able to help me set up a FTP account but that is about all. I guess I just don't know what I am looking for.
The .htaccess file is located inside the public_html directory
Yes, it will be in the public_HTML folder. This is also known as "your site's public root" folder.
So the issue here is you are trying to diagnose and fix something that is not "basic" for an end user. There are certain things I need you to be able to do to help me help you and for those things to happen, you also need to know certain things about your host.
What we can do if you are not comfortable proceeding is bend the rules of EE a little bit. In my profile, there is a button that you can use to email me directly. Ignore the title of the button since I won't be taking any pay for this. If you want, contact me and we can arrange for me to look at the site and I will then post all my results here to keep EE happy.
So the issue here is you are trying to diagnose and fix something that is not "basic" for an end user. There are certain things I need you to be able to do to help me help you and for those things to happen, you also need to know certain things about your host.
What we can do if you are not comfortable proceeding is bend the rules of EE a little bit. In my profile, there is a button that you can use to email me directly. Ignore the title of the button since I won't be taking any pay for this. If you want, contact me and we can arrange for me to look at the site and I will then post all my results here to keep EE happy.
ASKER
I'm O.K. with bending the rules if you are. Thank you both for staying with me as I muddle through some processes that are so unfamiliar to me. You have been very patient.
I'll go to your profile now, Jason.
I'll go to your profile now, Jason.
Okay, so it turns out that:
a) The FTP user is prevented from seeing the .htaccess file
b) The actual location is public_html/www
Contents of .htaccess are:
So that's not it.
Can you take a screen shot of your Settings | Permalinks page from Wordpress and post it here.
a) The FTP user is prevented from seeing the .htaccess file
b) The actual location is public_html/www
Contents of .htaccess are:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
So that's not it.
Can you take a screen shot of your Settings | Permalinks page from Wordpress and post it here.
ASKER
On that page, try adding a category base and see what happens.
Also, can I get a screenshot of your All Posts screen?
Also, can I get a screenshot of your All Posts screen?
Also, I see that you have some plugins that need updating...please do that and see if it helps.
ASKER
No, your category base is wrong.
Just put the word "topics" without quotes and save it.
Just put the word "topics" without quotes and save it.
ASKER
I'm sorry to be so naive but do I put in the ? or % or anything around topics? I put it in by itself and saved with no results.
No, that's the way you are supposed to do it. WordPress should take care of the rewriting from there.
Are you using a caching plugin? Also, switch to a new theme to see if that works.
We're getting closer to pinpointing the problem.
Are you using a caching plugin? Also, switch to a new theme to see if that works.
We're getting closer to pinpointing the problem.
ASKER
I don't think I have a caching plugin. I switched to basic theme and still the categories didn't work. Went back to Asthete and noticed that now the "Latest Posts" on widget is not directing.
I'm going to break the rules and email you again, Justin.
I'm going to break the rules and email you again, Justin.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can't believe it was such a simple solution to a complex problem. I had disabled all plugins when I updated to 3.2.1 Wordpress and then reactivated them one at a time with what appeared to be no problems, but I must have somehow missed this.
I can't thank you enough for your help. I did learn some new things: how to use FTP and how to make a screen shot. I'll keep working on it.
Thank you and thanks to PragC too!
I can't thank you enough for your help. I did learn some new things: how to use FTP and how to make a screen shot. I'll keep working on it.
Thank you and thanks to PragC too!
Hang on, I'm still working on a way to remove the /category/ from the categories links. It is possible, but that plugin was broken.
ASKER
Expert went above and beyond the call of duty to work with me (a very inexperienced) website manager. I appreciate his patience and determination to see this through to a solution.
aaaaand NOW it's done.
The Yoast SEO plugin (which every WordPress site should use) has the same feature as the Top Level Categories plugin, only it works because Yoast is so awesome.
Your site should be fine now.
The Yoast SEO plugin (which every WordPress site should use) has the same feature as the Top Level Categories plugin, only it works because Yoast is so awesome.
Your site should be fine now.