Posts by kaaz

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Here is how I do.

ID : User input post IDs to include/exclude specific posts(separate with commas for multiple IDs). Exclude posts by prefixing its id with a ’-’ (minus) sign.

example usage

To exclude posts: [photogallery id=”-12,-45”]

To include posts: [photogallery id=”25,47,198”]

To include/exclude posts: [photogallery id=”-12,47,-45”]

add_shortcode( 'photogallery', 'shortcode_photogallery' );

function shortcode_photogallery( $atts, $content = null ) {
    extract(shortcode_atts(array(
        'id' => '',
    ), $atts));

    //comma separated user input IDs to array
    $ids = isset($id) && $id != '' ? explode( ',', $id ) : '' ;

    $loop = new WP_Query(array(
                'post_type' => 'slides',
                'post_status' => 'publish',
                'post__in' => $ids,    //array
                'ignore_sticky_posts' => 1,
            ));

    $html = '';

    if( $loop->have_posts() ) :

            $html .= '<div class="photogallery">';

            while ( $loop->have_posts() ) : $loop->the_post();

                //your codes here

            endwhile; //END loop

            $html .= '</div>';

    endif;

    return $html;

}

Hope this works for you

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Congrats Cristi … :)

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

We’re in :)

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Hi dianavisual,

You’re trying on a different forum, Our theme support forum is located here: http://support.kaazthemes.com/

OR

Please contact me through my profile page with your purchase code. Also you may send your site url and temporary login details, so that I can fix the installation issues.

Thank you

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Off topic :

@Ivor

Could you please move one of my wedding theme to new WordPress Wedding category. I also sent you an email few days ago through your profile page.

Thank you

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Here is the answer : http://www.kriesi.at/about

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

TF Header FF Stylish : http://pastebin.com/cBepNtCM

tf header

Large Image: http://bit.ly/1bjSMJ5

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Congratulation Parallelus :)

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Congrats…

388 posts
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
+2 more
kaaz says

Good news! :):):)

by
by
by
by
by
by