Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress Categories / Menu Clash

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27148
    BLUEBIRD
    Member

    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

    #67969
    AshtonSanders
    Participant
    "BLUEBIRD" wrote:
    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.

    You have hand coded your menu incorrectly:

    Code:
  • services
  • equipment
  • clients
  • news
  • contact

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_Hierarchy

#67998
BLUEBIRD
Member

Thanks 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

#68015
AshtonSanders
Participant
"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.

Viewing 4 posts - 1 through 4 (of 4 total)