[Plugin: Post UI Tabs] Create a setter method overide has_tabs
-
Nice plugin.
I got stuck however with its implementation because there is no way to overide
has_tabs()
I was trying to use the plugin to pull child pages onto a parent page, and because the parent page did not have
has_tabs()
set the shortcode, it wouldn’t execute.I tried various do shortcode / filter combinations in vain.
$loop = new WP_Query( array( 'post_type' => $post->post_type, 'posts_per_page' => -1, 'post_parent' => $post->post_parent ) ); // using the WordPress UI tab plugin. while ( $loop->have_posts() ) : $loop->the_post(); $title = get_the_title(); $content = get_the_content(); //simply does not work... $shortcode_content .= "[tab name=\"{$title}\"]\r\njust does not work!\r\n[/tab]"; endwhile; $shortcode_content .= "\r\n[end_tabset]"; echo apply_filters( 'the_content', $shortcode_content );
Now if I could force has_tabs to true via a public method I could get around it.
Thanks anyway.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Post UI Tabs] Create a setter method overide has_tabs’ is closed to new replies.