1395 posts
Chris Robinson
- Microlancer Beta Tester
- Sold between 250 000 and 1 000 000 dollars
- Author was Featured
- Item was Featured
- Has been a member for 4-5 years
- Author had a File in an Envato Bundle
- Referred between 200 and 499 users
- Author had a Free File of the Month
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?
1395 posts
Chris Robinson
- Microlancer Beta Tester
- Sold between 250 000 and 1 000 000 dollars
- Author was Featured
- Item was Featured
- Has been a member for 4-5 years
- Author had a File in an Envato Bundle
- Referred between 200 and 499 users
- Author had a Free File of the Month
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 } ?>
