Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have a fresh WP install, with no other plugins, that behaves the same way for me on the browsers I actually use. That is, the hide menu works but the show menu does NOT appear and the special “?unfoldmenu” url must be visited to get it back.

    Quick test results…
    IE 8 (via VirtualBox) – hide menu works, show menu DOES appear
    Win Firefox 3.6.6 (via VirtualBox) – problem as described
    Mac Safari 5 – problem as described
    Mac FireFox 3.6.6 – problem as described
    Mac Chrome 5.0.375.99 – problem as described

    Seems to be a browser issue, not a script issue. Basically, it only works in IE8. Hope this helps reach a solution and saves some frustration.

    Thanks for the great work on this plugin BTW!

    Thread Starter ccwordpress

    (@ccwordpress)

    A little further digging led me to “TEMPLATEPATH” – which I think will be exactly what I need. Maybe that’s why the *_directory parameters don’t do this any more. Regardless, I don’t see that documented very well.

    Thread Starter ccwordpress

    (@ccwordpress)

    Just for the benefit of anyone searching on this in the future, here is what I ended up with. Called from a post loop, it will print a thumbnail if it exists. (note also a tiny typo correction from the above – there’s no “post_mimi_type” that I know of)

    <?php
    $files = get_children("post_parent=$id&post_type=attachment&post_mime_type=image");
    if($files){
            $keys = array_keys($files);
            $num=$keys[0];
            $thumb=wp_get_attachment_thumb_url($num);
            print "<img src=$thumb>";
    }
    ?>

    Hope this helps someone else out.

    Thread Starter ccwordpress

    (@ccwordpress)

    Ah-ha, I see now. I had found wp_get_attachment_thumb_url() already – but “get_children is the key I was missing. Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)