Child pages excerpts shown into parent content

  • epiphane

    #3877

    Hello, thanks for this amazing theme !

    I played a lot with it in terms of design, and i’m stuck into something that should probably be easy for a Php user, which i’m not…

    In this kind of page : http://www.deckit.fr/2012/terrasses/, I would like to show the child pages excerpt into the parent content, in the entry-bottom…

    I tried to use PHP Widget into the Bottom Content hook, with this code :

    <?php if(function_exists('child_pages_listing)){
    echo child_pages_listing();
    }
    ?>

    But it’s not working… Can you enlight me ?

    Anonymous

    #26422

    Go to Graphene Options –> Child Page Options and select Show Listing in Child page listings

    Anonymous

    #26423

    Please put your code between backticks.

    epiphane

    #26424

    Wow thanks for a so quick answer ! And I’m sorry for the backticks, did it too fast…

    But the option was alreday set.

    The child pages are visible, but i don’t want them to be below the content, but inside, at the end.

    In this page, that will allow me to use the background of the content behind thoses excerpts and use a shadow all around : http://www.deckit.fr/2012/terrasses/

    Do you think I can ?

    Anonymous

    #26425

    The code you’ve mentioned does the same thing. It will not put your child pages inside the parent page.

    epiphane

    #26426

    Oh… So is there any way to put the child pages exceprt into the parent page ?

    Anonymous

    #26427

    Probably adding that code inside the parent page using the PHP-exec plugin could make it for you.

    epiphane

    #26428

    Finally, I moved

    <?php get_template_part( 'loop', 'children' ); ?>

    under

    <?php /* The full content */ ?>
    <?php the_content(); ?>

    in loop-page.php, and it works !

    Thanks for your quick answers and this great theme.

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

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!