1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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 Active Member

    Messages:
    199
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    73
    #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 Active Member

    Messages:
    628
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #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