WordPress.org

Ready to get started?Download WordPress

Forums

Switch "Pages" list with "Categories" list in lightword theme (3 posts)

  1. v1nsai
    Member
    Posted 3 years ago #

    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 >.<

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic