1564 posts Chris Robinson
  • United States
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Referred between 500 and 999 users
  • Author had a Free File of the Month
+5 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?

1564 posts Chris Robinson
  • United States
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Referred between 500 and 999 users
  • Author had a Free File of the Month
+5 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