ThemeForest

Posts by mabuc

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

Hi,

first, you need to contact the theme author.. I’m sure he/she/them can help you fix your issues..

thanks

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

I already bought my own house and we will transfer next month.. I’m pretty excited!

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

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..

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

my favorite movie is 2012 :)

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

Are you a coder?

he’s a pure coder and very good friend of mine… :)

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

you better use it in the loop with an if statement
if(!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…
1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

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!

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

contact envato support: http://support.envato.com/

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

Screengrab for Firefox: http://goo.gl/JyN3v

1120 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

I used my own shortcode plugin.. when I create a new theme I will just activate it.. so for me it’s shortcode :)

by
by
by
by
by