Forums

Best WordPress Template Blog
You must be logged in to post Login Register


Lost Your Password?

Samsarin PHP 1 widget

UserPost

8:41 am
March 15, 2008


DeeH

New Member

posts 9

I have copied the folliwng code into my widget

<ul><?php if(is_home()) : ?>
<?php wp_list_categories('style=list&hide_empty=1&title_li='); ?>
<?php else : ?>
<?php if(function_exists('add_link_attr')) { ?>
<?php add_link_attr('wp_list_categories', 'style=list&hide_empty=1&title_li=', 'rel="nofollow"', ''); ?>
<?php } else { ?>
<?php wp_list_categories('style=list&hide_empty=1&title_li='); } ?>
<?php endif; ?>
</ul>

The categories now display on the left sidebar but clicking on them throws a 404 error page (which by the way is really neat as it also shows a site map..........very cool!)

Have I messed up the code somehow please?

Any ideas gratefully acted upon!

Dee 

 

 

 

 

2:05 pm
March 15, 2008


Best WordPress Template

Admin

posts 77

It's usually due to your permalink and not related to the widgets or template =P.

So, just go to "Options => Permalink" and hit the update button +> then go the category page to see if there's another 404 error. If there's, let me know.

 

Regards,

~Mint Tree~

<a href="#header">Top</a> Admin Mint Tree

2:24 pm
March 15, 2008


DeeH

New Member

posts 9

Mint Tree..there is something odd here and it is nothing to do with the template you are quite right BUT if you were to have any idea how I might fix it I'd be grateful.

I have my permalink set up as /%category%/%postname%/

I have updated that and all says it is saved OK.

However, when I hover the mouse over one of the category links and look down in the bottom right hand corner to see what the url is it says http://murmurz.com/category/murmurz/

Now I cannot for the life of me see why the word 'category' is appearing there?? Surely it should be the domain name/category name?

I have cut and pasted the permalink in case I have done something wrong there...........

Would you have any idea how I might fix that??

Sorry!

2:51 pm
March 15, 2008


Best WordPress Template

Admin

posts 77

Hi Dee, it might be due to the a 'redirection' plugin that you are using (or a permalink for "tag" and "category" conincide =0).

Anyway, if you are using a plugin called "Advanced Permalinks" that might be the cause ;).

If not, try changing to the defualt permalink, hit update

=> and then change it back to

/%category%/%postname%/

=> hit another update and see if you can access the permalink now.

*(This did the trick for me once, I had the same problem before =).

<a href="#header">Top</a> Admin Mint Tree

3:03 pm
March 15, 2008


DeeH

New Member

posts 9

Fixed. Thank you so much.

There was an advanced tab under permalinks which I had not noticed before. The fields were blank but they also said that the default when left blank was /category/%category%/  

 

Anyway I input /%category%/ into the advanced field and it is now fixed.

 

I've never come across that before and really appreciate your help in sorting it out as I appreciate it was nothing to do with the template!!

 


About the Best WordPress Template Blog forum

Most Users Ever Online: 17

Currently Online:
6 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 49
Posts: 185

Membership:

There are 185 Members
There have been 5 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

davisec52 - 62
DeeH - 9
7digital - 8
lucky8 - 2
titanad - 2
smaxdot - 2

Recent New Members: chen123, photo recovery, jencruz8787, robcortez1787, lixiaoyu

Administrators: Best WordPress Template (77 Posts)

Moderators: Best WordPress Template (77 Posts)



HELP & SUPPORT QUESTIONS

Please post all the support or any other questions in the forums.

Thank you!

P.S. For other support, please use the Ticket Support system (I usually do not do email support).
Latest Comments
chen123: Activity is the only timberland boots uk road to knowledge .A free timberland boot man obtains knowledge...
haber: very nice, but my website was done with joomla :( thanks
data: looks like a great idea, i’m looking for a widget enabled footer-sidebar, but i dont understand, does it...
mas: is is for wordpress 2.6 ? and whereis the download link? Thanks
Fahd Murtaza: Can’t find the link to download.