• Hi. I’m trying to use:
    <?php wp_list_pages('child_of=2&title_li='); ?>

    But instead of ‘child_of=2’ I want to return the id of the current page. That way, this will only list the child pages of the page currently being viewed.

    What string do I have to use to get this to work? I can’t figure out the answer from the forums or codex… ??

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter ccheaton

    (@ccheaton)

    Thanks for the help! I just removed the code for the time being. I’d like to get this working, though, so if you think of anything, or if you try it in an updated version, let me know!

    I’ve uipgraded to the latest,….. and the code snip still works, so it isn’t a WP version problem….

    Ok, let’s try this:
    1) When do you want it to appear, only when a Page is displayed, right?
    2) Where do you want it displayed? On the page somewhere, or in the side bar?

    Tg

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Dynamic return of page_id?’ is closed to new replies.