Image Gallery in Post (On Wordpress)

Discussion in 'WordPress' started by inzaji, Apr 10, 2012.

  1. #1
    Hello,

    I have wordpress blog, I use Newspaper Times Theme by Magazine3. I wanted to put a image gallery in post, Can any one tell me any plugin where i can install gallery in post or any other options...

    Also i wanted to install video option in post.. any plugins for it?
     
    inzaji, Apr 10, 2012 IP
  2. ShinoRex

    ShinoRex Well-Known Member

    Messages:
    227
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    148
    #2
    ShinoRex, Apr 11, 2012 IP
  3. inzaji

    inzaji Member

    Messages:
    170
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    not working on my current theme properly !
     
    inzaji, Apr 23, 2012 IP
  4. stinker

    stinker Well-Known Member

    Messages:
    628
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    What exactly is not working with this gallery? Please share the issue.
    I use it and it works perfect! but i use togetrer with "nextgen scroll gallery" which adds slideshow gallery into a post.

    You may need to install "nextgen scroll gallery" then you can add slideshows right into a post. That way you'll save a good part of blog post space.
     
    Last edited: May 8, 2012
    stinker, May 8, 2012 IP
  5. fotogrph

    fotogrph Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Doesn't wordpress have a gallery function builtin to the media library. You just upload the images and insert them as a gallery.
     
    fotogrph, May 12, 2012 IP
  6. alaykdenhaq

    alaykdenhaq Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi Inzaji

    Put This Code to the functions.php
    function mattchthumb( )
    {
        global $post;
        $args = array(
            "post_type" => "attachment",
            "post_parent" => $post->ID,
            "post_mime_type" => "image",
    	"width" => 75,
    	"height" => 75,
            "post_status" => null,
            "numberposts" => 6
        );
        $attachments = get_posts( $args );
        if ( $attachments )
        {
            foreach ( $attachments as $attachment )
            {
                echo wp_get_attachment_link( $attachment->ID, "thumbnail", true, false );
            }
        }
    }
    Code (markup):
    and than, put this code to the position that you will show the image gallery at single.php

    <?php mattchthumb(); ?>
    Code (markup):
    I Always use this code for my themes. :)
    Hopefully can help you.
     
    alaykdenhaq, May 12, 2012 IP