- This topic is empty.
-
AuthorPosts
-
December 10, 2009 at 5:11 am #27148BLUEBIRDMember
Hi,
I have just added a news section to a site.
When you click on a category and get taken to the ‘categories’ page, and then click on the main menu, there is an error.
The category page thinks you want a sub category of itself, instead of linking to the main page.Here is the link http://www.suistudios.com/news
(excuse the holding copy on the page.)click on a category and you get to http://www.suistudios.com/category/news
THEN try to click on the main menu, example EQUIPMENT to get out of there and it goes
http://www.suistudios.com/category/equipment and there is an error, as there is no page like that.
Why is my category page, which is based on the template of my single.php page not respecting my main menu?
Any ideas?
Thanks
BLUE BIRD
December 10, 2009 at 2:55 pm #67969AshtonSandersParticipant"BLUEBIRD" wrote:THEN try to click on the main menu, example EQUIPMENT to get out of there and it goeshttp://www.suistudios.com/category/equipment and there is an error, as there is no page like that.
You have hand coded your menu incorrectly:
If you want a link to always refer to the root of your website, add a backslash "/" before the page name…. example
Code:"BLUEBIRD" wrote:Why is my category page, which is based on the template of my single.php page not respecting my main menu?Also, that doesnt’ make sense.
Your Category page is not based on your single.php template. Here’s why:
http://codex.wordpress.org/Template_HierarchyDecember 11, 2009 at 4:48 am #67998BLUEBIRDMemberThanks again Ashton!
I’m feeling a bit sheepish about that mistake.
I’m afraid the following is true:
‘category page, which is based on the template of my single.php page’
I created a category.php, as I didn’t have one and pasted my single.php code into it.
Having said that, I don’t think I entirely understand the WordPress system yet.
So I have been doing quite a few ‘irregular’ things to get it to do what I want.This is the beginning for me. With a CMS, I mean.
I have been wondering whether I shouldn’t rather be spending my time learning DRUPAL.
They say it’s a tough system to get into, but it can achieve almost anything when you know it.
I am no programmer, but I code my own sites. Need to get to know PHP better. WordPress is helping me familiarise myself with this. Perhaps it’s a good stepping stone. There is so much to know!BLUEBIRD
December 11, 2009 at 4:16 pm #68015AshtonSandersParticipant"BLUEBIRD" wrote:I created a category.php, as I didn’t have one and pasted my single.php code into it.Oh, I get it. That does make sense. Thanks for clarifying.
"BLUEBIRD" wrote:Having said that, I don’t think I entirely understand the WordPress system yet.Yea, it does have a learning curve. Thankfully you don’t need to know everything to make it work. Just the more you learn, the cooler stuff you can do. Just make sure you learn something new every day.
"BLUEBIRD" wrote:This is the beginning for me. With a CMS, I mean.
I have been wondering whether I shouldn’t rather be spending my time learning DRUPAL.Definitely start with WordPress. It’s about 1/6th the learning curve. Drupal is a great program, but is a "heavy-weight" IMHO. It’s fantastic for huge sites, ridiculous overkill for anything under 50 pages.
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.