ccwordpress
Forum Replies Created
-
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 describedSeems 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!
Forum: Plugins
In reply to: get_bloginfo(‘template_directory’) – returns URI, not filesystem pathA 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.
Forum: Plugins
In reply to: attachments associated with a postJust 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.
Forum: Plugins
In reply to: attachments associated with a postAh-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!