What is the most efficient way to retrieve a group of image URL’s from different attachment ID’s of a specific crop size?

I don’t believe there is more efficient way. Your primary object should be keeping things simple while using WP’s API which is exactly what you’re already doing. It’s true some scenarios could become pretty expensive and that is where you could take advantage of WP Object Cache or even Transients API. A good example of … Read more

WordPress Admin: open popup window on a custom button

Maybe you can open a thickbox with javascript. A example with check for the height and width of the thickbox. <script type=”text/javascript”> <!– var viewportwidth, viewportheight; if (typeof window.innerWidth != ‘undefined’ ) { viewportwidth = window.innerWidth-80, viewportheight = window.innerHeight-100 } else if (typeof document.documentElement != ‘undefined’ && typeof document.documentElement.clientWidth != ‘undefined’ && document.documentElement.clientWidth != 0) … Read more

A simple script/plugin to display specific page upon hierarchy of selections

Well, you already have the two particular category IDs, so list the sub-categories. Like so: $cat_list_1 = wp_list_categories(array( ‘echo’ => 1, ‘child_of’ => FIRST_CAT_ID_HERE, ‘title_li’ => ‘A Name for This’, ‘depth’ => 2, // or whatever you like )); $cat_list_2 = wp_list_categories(array( ‘echo’ => 1, ‘child_of’ => SECOND_CAT_ID_HERE, ‘title_li’ => ‘Another Name for This’, ‘depth’ … Read more

Make three menus with three category levels

wp_list_categories(); will by default give you a hierarchically nested list of all your categories. Hiding and showing that list, or parts of it, is just a matter of CSS. That sounds like what you need. For example echo ‘<ul class=”my-cats-list”>’,wp_list_categories(),'</ul>’; // style rules; put in your theme’s style.css .cat-item { padding-left:5px; } .children { display:none; … Read more