1589 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Anyone know of a way to append a thickbox query into the wp_list_pages href, without having to modify core templates?

The normal output:

/?page_id=85

With appended Thickbox query:

/?page_id=85?KeepThis=true&TB_iframe=true&height=400&width=600

Is there a simple custom function that can be written?

1589 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Nevermind, spoke to soon and figured it out using the get_pages function:

<?php $pages = get_pages('sort_column=menu_order&title_li=');
    $count = 0;
    foreach($pages as $page) {
    ?>
    <li><a href="<?php echo get_page_link($page->ID) ?>?KeepThis=true&TB_iframe=true&height=400&width=600" class="thickbox"><?php echo $page?>post_title ?></a></li>
<?php } ?>
by
by
by
by
by
by