Support » Themes and Templates » Switch "Pages" list with "Categories" list in lightword theme

  • Hey all, I have what I think should be a fairly easy question but I just haven’t been able to figure it out on my own.

    I’m using the theme lightword as a base theme and have made some changes here and there. “Pages” are listed across the top of the page, and I would like to switch it so that “Categories” are listed across the top instead. I’ve been doing research on wordpress themes and the wordpress API (I’m a programmer but I’ve never used PHP) and I was very sure that switching all instances of wp_list_pages() with wp_list_categories() would do what I want, but that has usually resulted in half the page not being rendered at all.

    Was wondering if someone (possibly familiar with lightword itself) would know what I need to do. It’s probably just a matter of changing a few calls around but after several hours messing around I still haven’t gotten it >.<

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    I was very sure that switching all instances of wp_list_pages() with wp_list_categories() would do what I want

    That’s certainly the correct route.

    but that has usually resulted in half the page not being rendered at all.

    I can only guess that you introduced a PHP syntax error.

    there should be theme setting options to select categories as the top menu.
    (Version: 1.9.6)

    ‘dashboard – appearance – lightword settings’

    Show categories on front menu Check this box if you would like to SHOW CATEGORIES instead pages on front menu

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Switch "Pages" list with "Categories" list in lightword theme’ is closed to new replies.