Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Simplest Post Image Gallery

Apraksts

Simplest Post Image Gallery is the simplest and straightforward way how to attach images to your posts/pages and then be able to display them in your template.

Very basic and straightforward way how to attach images to your post/page via the admin interface. Even your grandma will understand this right away 🙂

Ekrānuzņēmumi

  • Select images that are already attached to your media library within the post/page edit screen.

Uzstādīšana

  1. Upload simplest-post-image-gallery to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php $image_array = implest_post_image_gallery_array($post_id); ?> in your template file to retrieve the images for that post/page.

BUJ

Installation Instructions
  1. Upload simplest-post-image-gallery to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php $image_array = implest_post_image_gallery_array($post_id); ?> in your template file to retrieve the images for that post/page.
Can I change how images are displayed in my theme

Yes, plugin public function returns the ID of images that are attached to the post/page. And them display them with <?php wp_get_attachment_image($image_id,'thumbnail', 1, 1); ?> function for example and place those images where and how you want them within that page. Or you can even use <?php get_post_meta($post->ID, 'post_images', true); ?> function in template and retrieve those IDs yourself.

Can I use Lightbox/Fancybox to display post images

Yes, you display them in your theme in any way how you see it fit. See the above answer

Atsauksmes

Lasīt 3 atsauksmes

Autori un izstrādātāji

“Simplest Post Image Gallery” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Simplest Post Image Gallery” savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0

Stable version, code compiled as a proper plugin