build child and anchestor three from post parent

So i got it working, by adding a filter: i added this before the wp_list_pages add_filter( ‘get_pages’, ‘check_propper_rank’, 10, 2 ); wp_list_pages( array( ‘post_type’ => ‘wiki-term’, ) ); and then created a new filter, to removed the ones that did’nt fit the rank. function check_propper_rank( $pages, $arguments ) { $user_rank = 100; foreach ( $pages … Read more

Custom post type shortcode

Its done : $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ ); $string .=’ <div class=”main-slider-item” style=”background-image: url(‘.$backgroundImg[0].’); background-size: cover; background-repeat: no-repeat;”>’ .