How show childs and siblings pages
-
Hello!
I have found this snippet to show related pages, but I would need it to show childs pages and another one to show siblings pages. How could I do it?
Thanks
add_shortcode(‘dynamic_wpsp’, function($atts){
$queriedArchive = get_queried_object();
$atts = shortcode_atts( array(
‘id’ => ”
), $atts, ‘dynamic_wpsp’ );$settings = array(
‘taxonomy’ => $queriedArchive->taxonomy,
‘tax_term’ => $queriedArchive->slug,
);ob_start();
wpsp_display( $atts[‘id’], $settings );
return ob_get_clean();
});`
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How show childs and siblings pages’ is closed to new replies.