Hi,
first, you need to contact the theme author.. I’m sure he/she/them can help you fix your issues..
thanks
I already bought my own house and we will transfer next month.. I’m pretty excited!
Hello,
I have a CPT “gallery” and I have a custom field “exclude” and I want to exclude a post from the loop and when exclude field is check the specific post should be excluded in the list.. here’s my code..
$exclude_post = get_post_meta($id, "exclude", true); $args = array( 'post_type' => 'gallery', 'post__not_in' => array($exclude_post), 'paged' => $paged ); $wp_query = new WP_Query( $args );
$exclude_post wont get the value as it is outside the loop.. can anyone help me here..
thank you in advance..
my favorite movie is 2012 
dnp_theme said
Are you a coder?
he’s a pure coder and very good friend of mine… 
fAntasticmE said
you better use it in the loop with an if statementif(!get_post_meta(post->ID, "exclude",true)){ //do stuff }
that won’t work. It should be
if(get_post_meta( $post->ID, "exclude", true )) { }
I used this before but I am adding a dynamic class=”last” if it’s 2 cols, 3 cols and 4 cols.. so I decided to add the exclude in the $arg statement…Hello,
I have a cpt services and each post I added exclude checkbox. My question/problem is how can I get the checkbox exclude value in a loop using a new wp_query? below are the code I used..
$args = array( 'post_type' => 'gallery', 'post__not_in' => array($exclude_id), 'paged' => $paged );
$wp_query = new WP_Query( $args );
$exclude = get_post_meta( $wp_query->post->ID, "exclude", true );
if($exclude == "on") {
$exclude_id = $wp_query->post->ID;
}
I want to get the $exclude_id value and add it in the $args statement but it’s not working.. can anyone help me with this..
thank you very much!
contact envato support: http://support.envato.com/
Screengrab for Firefox: http://goo.gl/JyN3v
I used my own shortcode plugin.. when I create a new theme I will just activate it.. so for me it’s shortcode 
