1618 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?

1618 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 } ?>

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by