Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: Categories on pages.

    Kri,

    That *kinda* works, but it sure would be a lot cooler if you didn’t have to hard-code x for ‘child_of=’ in each template … it might mean that you could have just one template, eh?

    I found the line below somewhere in this forum the trouble is, I don’t know how to get the variable $parent_id filled in. I’ve used the_ID() but it didn’t seem to work. Any suggestions?

    < ?php wp_list_pages('depth=2&sort_column=post_date&title_li=&child_of='. $parent_id); ?>

    I think you are trying to do the same thing that I am trying to do.

    I am only halfway there, but I don’t think the Fold_Page plugin is what you really want. I could be wrong, but I’m hesitant to load in code if existing tags will do.

    “Initally” or “in the main site” where you just want to see the top-level pages you edit your header template file so that you pass some parameters to wp_list_pages … depth=1 will display just the top level of your pages structure.

    Then, when a visitor clicks through to reviews, there would ideally be a page with a short introduction and a list of subpages (Canon, Nikon, Holga). This is where I’m stuck. I’ve found this php string in someone else’s post, but I haven’t figured out how to use it:

    < ?php wp_list_pages('depth=2&sort_column=post_date&title_li=&child_of='. $parent_id); ?>

    some links i’ve found valuable:
    http://codex.ww.wp.xz.cn/Template_Tags/wp_list_pages
    http://codex.ww.wp.xz.cn/Template_Tags

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