Posts by kaaz

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

I’ve added two images in a post and used [clearing] shortcode. It outputs the images of current post as expected with grid without any error or notice(which you reported).

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

Could you please explain purpose of [clearing] shortcode and use cases, Using this shortcode in editor, echos whole post content again

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

Please paste full source code of that file(shortcode-clearing.php) here: http://pastebin.com/

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

you’re welcome :)

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

Use get_the_ID() instead of $post->ID in custom loops OR in this case $loop->post->ID

add_shortcode( 'chills_flexslider', 'chills_flexslider_shortcode' );

function chills_flexslider_shortcode( $atts, $content = null ) {

    extract(shortcode_atts(array(
        'exclude' => '',
        'include' => '',
    ), $atts));

    //comma separated user input IDs to array
    $post_include = isset($include) && $include != '' ? explode( ',', $include) : '' ;
    $post_exclude = isset($exclude) && $exclude != '' ? explode( ',', $exclude) : '' ;

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

    $html = ''; 

    if( $loop->have_posts() ) :

        $html .= '<div class="flexslider"><ul class="slides">';

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

                            $the_featured_image = get_the_post_thumbnail( get_the_ID(), 'full' );
                            $the_caption = get_the_content();

                            $html .= '<li>'.$the_featured_image.'<p class="flex-caption">'.$the_caption.get_the_title().'</p></li>';

                        endwhile; //END while loop

            $html .= '</ul></div>';

    else:

        $html .= '<p>' . __( '[chills_flexslider] Error: No slides found', 'framework' ) . '</p>';

    endif;

    return $html;

}

Thanks

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says
this person helps this marketplaces running

Congrats…

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

Theme preview panel collapse (possibly a bug, please report it)

http://i62.tinypic.com/2yy5eeg.jpg
369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

Done.

Could you please post the survey results here after finished

Thanks

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

@ThemeChills you’re welcome :)

369 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
kaaz says

sorry, that was a quick edit code

Please change those 2 lines to this

    $post_include = isset($include) && $include != '' ? explode( ',', $include) : '' ;
    $post_exclude = isset($exclude) && $exclude != '' ? explode( ',', $exclude) : '' ;

Thanks

by
by
by
by
by
by