外掛說明
Shuffle lets you:
- Attach an item (Image, Audio, Video) to anything (Post, Page, Custom Post Type, another Attachment)!
Use these functions in your Theme to get your re-ordered Media:
<?php
//In the Loop:
get_images();
//Outside of the Loop:
get_images( get_the_ID() );
// Audio
get_audio();
// Video
get_video();
?>
Read more: http://scotty-t.com/2010/11/15/my-first-plugin-shuffle/
螢幕擷圖
In your Post library, rollover actions have added to conveniently point you to all of your item’s attachments
You can now attach an attachment to ANYTHING, why not another attachment! Since all we are doing is setting post_parent, and attachments are Posts in the database, it is now easy to manage your associations. We also make sure you can’t attach an attachment to itself 🙂
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
0.5
- Update the code, remove things that are now in WordPress core
0.4
- Re-wrote the whole thing
0.3
- Removed
=&
wherever it was unnecessarily being used, important so no Notices / Errors will not be thrown whenerror_reporting(-1)
0.2
- get_images() will now exclude the post’s featured image / post thumbnail by default
- all Theme functions will now take query_posts() params as the only argument if desired, ‘and_featured’ => true will force the return of the post thumnbail in the result
0.1
- Initial release