Title: coderdj412's Replies | WordPress.org

---

# coderdj412

  [  ](https://wordpress.org/support/users/coderdj412/)

 *   [Profile](https://wordpress.org/support/users/coderdj412/)
 *   [Topics Started](https://wordpress.org/support/users/coderdj412/topics/)
 *   [Replies Created](https://wordpress.org/support/users/coderdj412/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/coderdj412/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/coderdj412/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/coderdj412/engagements/)
 *   [Favorites](https://wordpress.org/support/users/coderdj412/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [WP_Query empty when using tax_query](https://wordpress.org/support/topic/wp_query-empty-when-using-tax_query/)
 *  Thread Starter [coderdj412](https://wordpress.org/support/users/coderdj412/)
 * (@coderdj412)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wp_query-empty-when-using-tax_query/#post-5489531)
 * For some reason I must have switched the syntax and it wasn’t an array of an 
   array and that’s why it wasn’t working. Finally fixed it and now its working.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to get two thumbnails sizes in a custom loop ?](https://wordpress.org/support/topic/how-to-get-two-thumbnails-sizes-in-a-custom-loop/)
 *  [coderdj412](https://wordpress.org/support/users/coderdj412/)
 * (@coderdj412)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-get-two-thumbnails-sizes-in-a-custom-loop/#post-5465577)
 * First make the size in functions. Then, whatever you named the size, use that
   in your theme. Then reupload the images, cause wp creates the additional sizes
   upon upload i believe so earlier images don’t count.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to get two thumbnails sizes in a custom loop ?](https://wordpress.org/support/topic/how-to-get-two-thumbnails-sizes-in-a-custom-loop/)
 *  [coderdj412](https://wordpress.org/support/users/coderdj412/)
 * (@coderdj412)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-get-two-thumbnails-sizes-in-a-custom-loop/#post-5465576)
 * `<?php the_post_thumbnail('small-thumb'); ?>`
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to get two thumbnails sizes in a custom loop ?](https://wordpress.org/support/topic/how-to-get-two-thumbnails-sizes-in-a-custom-loop/)
 *  [coderdj412](https://wordpress.org/support/users/coderdj412/)
 * (@coderdj412)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-get-two-thumbnails-sizes-in-a-custom-loop/#post-5465568)
 * I use this to create different image sizes for use on my site:
    [http://codex.wordpress.org/Function_Reference/add_image_size](http://codex.wordpress.org/Function_Reference/add_image_size)
 * functions.php usage:
    `add_image_size('small-thumb', 100, 100, true);`
 * theme usage:
 *     ```
       post_thumbnail('small-thumb');
       post_thumbnail('large-thumb');
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [simple = – / x calculations with 2 custom fields](https://wordpress.org/support/topic/simple-x-calculations-with-2-custom-fields/)
 *  [coderdj412](https://wordpress.org/support/users/coderdj412/)
 * (@coderdj412)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/simple-x-calculations-with-2-custom-fields/#post-5486256)
 * You might have to typecast them to ints
 * $bmi = (int)$weight / (int)$height^2;
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Filter: CPT and map_meta_cap](https://wordpress.org/support/topic/filter-cpt-and-map_meta_cap/)
 *  Thread Starter [coderdj412](https://wordpress.org/support/users/coderdj412/)
 * (@coderdj412)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/filter-cpt-and-map_meta_cap/#post-5345742)
 * Ok, cool. So if I set the boolean to true in the cpt function, all of the caps
   in the map_meta_cap inherit the caps of the post object?
 * For example:
 * If the default map_meta_cap function does this:
 *     ```
       switch ($cap){
       case 'edit_posts'
       ```
   
 * If boolean is true, then the above is true for my cpt? If I create a cb func 
   that changes who can edit posts like:
 *     ```
       if(is_admin){
       $caps = 'edit_posts';
       return $caps;
       }
       ```
   
 * If that the format to change how the caps are rendered?

Viewing 6 replies - 1 through 6 (of 6 total)