Tag Info

New answers tagged


I found how it could be done! Instead of using that function it was possible to add a query and another function. This is the code goes in the page.php file. <?php $subs = new WP_Query( array( 'post_parent' => $post->ID, 'post_type' => 'page', 'meta_key' => '_thumbnail_id' )); if( $subs->have_posts() ) : while( ...


Based on what you have above... I would change "numberposts" to "posts_per_page". And then I would change the "get_posts" to "new WP_Query" remove_shortcode( 'gallery' ); function gallery_filter( $atts, $content = null ) { extract(shortcode_atts(array('gallery_name' => ''), $args)); $args = array( 'post_type' => 'attachment', ...

Top 50 recent answers are included