Support » Plugin: Page-list » Any way to display siblings with a thumbnail ?

  • Resolved aguett

    (@aguett)


    Hi,

    Nice plugin ! Quick question : I’ve been through all the parameters but I can’t find a way to display the siblings with their thumbnails (so basically it’s the functionality of pagelist_ext but to display the siblings…).

    The only way I’ve found was to use [pagelist_ext parent=”197″] but of course this isn’t going to work dynamically as the parent ID is hardcoded.

    Any idea ?

    Thanks,

    Cheers,

    https://wordpress.org/plugins/page-list/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Reply to self : doesn’t seem supported by the plugin shortcodes but can be extended this way :

    <?php
    
    global $post;
    if (is_page() && $post->post_parent) {
    
    	$my_id_parent = $post->post_parent;
    	echo do_shortcode('[pagelist_ext parent="' . $my_id_parent . '"]');
    }
    
    ?>
    Plugin Author webvitalii

    (@webvitaly)

    @aguett: Yes, this feature is not supported by the plugin.
    Thank you very much for sharing the code with solution.
    Probably it will be useful for other users too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any way to display siblings with a thumbnail ?’ is closed to new replies.