Title: Code Amp's Replies - page 18 | WordPress.org

---

# Code Amp

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 256 through 270 (of 415 total)

[←](https://wordpress.org/support/users/codeamp/replies/page/17/?output_format=md)
[1](https://wordpress.org/support/users/codeamp/replies/?output_format=md) [2](https://wordpress.org/support/users/codeamp/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codeamp/replies/page/3/?output_format=md)…
[17](https://wordpress.org/support/users/codeamp/replies/page/17/?output_format=md)
18 [19](https://wordpress.org/support/users/codeamp/replies/page/19/?output_format=md)…
[26](https://wordpress.org/support/users/codeamp/replies/page/26/?output_format=md)
[27](https://wordpress.org/support/users/codeamp/replies/page/27/?output_format=md)
[28](https://wordpress.org/support/users/codeamp/replies/page/28/?output_format=md)
[→](https://wordpress.org/support/users/codeamp/replies/page/19/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Featured images not showing](https://wordpress.org/support/topic/featured-images-not-showing-34/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/featured-images-not-showing-34/#post-14991198)
 * ** I saw you mention it works on staging – what happens if you copy over live“
   as is”, to another environment (is the issue still present)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Featured images not showing](https://wordpress.org/support/topic/featured-images-not-showing-34/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/featured-images-not-showing-34/#post-14991188)
 * Hey Keryn
 * This all sounds very strange! I haven’t heard/seen these issues before.
 * A few questions if you don’t mind:
 * 1. Can you tell me, did they occur since a particular update, or are you setting
   up the plugin for the first time?
    2. Would you be able to enable WP_DEBUG and
   WP_DEBUG_LOG and see if there are any errors being thrown? 3. If I was to guess,
   this could be a plugin / theme conflict, so I would suggest disabling them as
   a test to see if the issue goes a way (so we know where to look next) – would
   you be able to do that on a staging / dev site?
 * Failing all the above, the next step would be to take a direct look at your setup
   and do some digging.
 * Best
    – Ross
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Product attributes in templates](https://wordpress.org/support/topic/product-attributes-in-templates/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/product-attributes-in-templates/#post-14983534)
 * Hi all
 * I’m going to double check this all later on today – I know product attributes
   by default are registered as taxonomies, so this should work – or it might require
   a tweak in our plugin to get going.
 * Either way, I will update with my findings as soon as I can.
 * Best
    -  This reply was modified 4 years, 7 months ago by [Code Amp](https://wordpress.org/support/users/codeamp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] How to assign layout to search result page?](https://wordpress.org/support/topic/how-to-assign-layout-to-search-result-page/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/how-to-assign-layout-to-search-result-page/#post-14979376)
 * Hi Piqler
 * To use in PHP, the easiest way would be to do this:
 *     ```
       <?php
           echo do_shortcode( '[custom-layout id='2373']' );
       ?>
       ```
   
 * Let me know how you get on.
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] [Bug] Query for Taxonomies: not saved](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/#post-14979361)
 * Ok, did you recreate your taxonomies using the same steps on the test system?
 * If so, then my assumption is something else is causing an additional issue.
 * I would be looking for a theme / plugin conflict. A couple of things to try:
 * – On your site, disable all plugins you can so you can see if they are causing
   an issue
    – Change theme on your site, to a default WP theme, and see if the 
   issue persists?
 * Alternatively, on the test site, you would want to keep adding things from you
   live site until it breaks (I’m assuming it would), so you could install your 
   theme, and some plugins on the test site.
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Query with meta fields (ACF)](https://wordpress.org/support/topic/query-with-meta-fields-acf/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/query-with-meta-fields-acf/#post-14979340)
 * Hey [@wp_user1](https://wordpress.org/support/users/wp_user1/)
 * So you would just need to modify your filter like this:
 *     ```
       function layout_query_args( $query_args, $id ) {
       	$query_args['meta_key'] = 'keyname';
       	$query_args['meta_value'] = 'value';
       	$query_args['meta_compare'] = '=';
       	return $query_args;
       }
       add_filter( 'custom-layouts/layout/query_args', 'layout_query_args', 10, 2 );
       ```
   
 * Notice, I added the `2` to `add_filter` and then added `$id` to the function `
   layout_query_args`
 * Please watch out for our next major version (and I’ll try to remember to update
   this ticket) as some of these apis might change – we won’t remove any functionality
   though, probably just rename the filter and perhaps change the order of the arguemnts.
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Product attributes in templates](https://wordpress.org/support/topic/product-attributes-in-templates/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/product-attributes-in-templates/#post-14973415)
 * Hey [@palomar83](https://wordpress.org/support/users/palomar83/)
 * Sure, most WC attributes, are in fact just taxonomies (so you can choose them
   with the taxonomy field).
 * Some data is stored as custom fields, and you should be able to use our Custom
   Field element to target that (such as price for example).
 * We are working on WC specific blocks for things like a purchase button, and stock
   status.
 * Feel free to give the plugin a spin and if you have any further questions I’d
   be happy to answer those.
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] [Bug] Query for Taxonomies: not saved](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/#post-14973214)
 * Yeah I would have a look, but unfortunately there is no way to access – it’s 
   against wp.org forum rules to ask for logins etc, and there is no private way
   to communicate logins… so my next best bet is to receate the issue on “disposable”
   site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] [Bug] Query for Taxonomies: not saved](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/#post-14973184)
 * Hmmm I’ll have to do some more testing – but in principal, I can’t recreate using
   a custom CPT and taxonomy (our custom layouts website site uses exactly this 
   setup for the demos)
 * I have an idea, why not recreate the issue in sandbox site so I can get access?
 * These two services allow you to build disposable sites that we can both work 
   on together:
 * [https://tastewp.com/](https://tastewp.com/)
    [https://instawp.io/](https://instawp.io/)
 * ** I think some of these sites get destroyed automatically after 8 hours on free
   accounts, so if you set that up soon, or around the same time tomorrow, I’ll 
   make sure I’m around to logon and take a look.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Query with meta fields (ACF)](https://wordpress.org/support/topic/query-with-meta-fields-acf/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/query-with-meta-fields-acf/#post-14973129)
 * Yup, its undocumented (because we plan to change some of this implementation 
   in the near future) but you can get the layout ID as the second parameter – here
   is our code:
 * `$query_args = apply_filters( 'custom-layouts/layout/query_args', $query_args,
   $this->id );`
 * Obviously this wouldn’t work if you were building a layout directly in the gutenberg
   editor, because there is no associated ID – if that is what you’re doing (?) 
   then I’ll consider adding some extra info to this filter to make it easier.
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Templates Comment count not working](https://wordpress.org/support/topic/templates-comment-count-not-working/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/templates-comment-count-not-working/#post-14972853)
 * Hey [@djavco](https://wordpress.org/support/users/djavco/)
 * I just took a look and can see it happens when there is 1 comment, but when there
   is more than 1 it seems to work ok – can you confirm this is what you see?
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] [Bug] Query for Taxonomies: not saved](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/bug-query-for-taxonomies-not-saved/#post-14972716)
 * Hey [@wp_user1](https://wordpress.org/support/users/wp_user1/)
 * As far as I’m aware, it’s not a known bug.
 * I’ve just tested this functionality and seems to work ok on my test site.
 * Can you explain a bit more:
 * 1. Are you using gutenberg to build the layout or are you using our admin pages?
   
   2. Is the taxonomy a custom taxonomy? 3. If you open your browse debug tools,
   do you see any errors appear as you press “save”?
 * Instructions for chrome (but every browser has their own version) : [https://support.awesome-table.com/hc/en-us/articles/115003787169-Using-the-Debug-Console-in-Google-Chrome-to-identify-errors](https://support.awesome-table.com/hc/en-us/articles/115003787169-Using-the-Debug-Console-in-Google-Chrome-to-identify-errors)
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] Query with meta fields (ACF)](https://wordpress.org/support/topic/query-with-meta-fields-acf/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/query-with-meta-fields-acf/#post-14972679)
 * Hey [@wp_user1](https://wordpress.org/support/users/wp_user1/)
 * We don’t have a UI for meta queries, but if you’re comfortable with WordPress
   hooks, and a bit of PHP, then you could use our filter to modify the query:
 * [https://customlayouts.com/documentation/action-filter-reference/](https://customlayouts.com/documentation/action-filter-reference/)
 * It’s the third one – `custom-layouts/layout/query_args`
 * I hope that helps!
 * Best
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] All posts showing today’s date](https://wordpress.org/support/topic/all-posts-showing-todays-date/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/all-posts-showing-todays-date/#post-14961265)
 * Hey [@cariatari](https://wordpress.org/support/users/cariatari/) – as I didn’t
   hear from you I’m going to go ahead and close the ticket.
 * Please re-open the ticket if you have any further issues but I’m confident since
   the last update this is resolved.
 * All the best
    – Ross
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Layouts - Post + Product grids made easy] All posts showing today’s date](https://wordpress.org/support/topic/all-posts-showing-todays-date/)
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/all-posts-showing-todays-date/#post-14954135)
 * Hey [@cariatari](https://wordpress.org/support/users/cariatari/)
 * That’s now been fixed and we’ve just pushed the update live (1.4.4)
 * Let me know how you get on.
 * Best

Viewing 15 replies - 256 through 270 (of 415 total)

[←](https://wordpress.org/support/users/codeamp/replies/page/17/?output_format=md)
[1](https://wordpress.org/support/users/codeamp/replies/?output_format=md) [2](https://wordpress.org/support/users/codeamp/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codeamp/replies/page/3/?output_format=md)…
[17](https://wordpress.org/support/users/codeamp/replies/page/17/?output_format=md)
18 [19](https://wordpress.org/support/users/codeamp/replies/page/19/?output_format=md)…
[26](https://wordpress.org/support/users/codeamp/replies/page/26/?output_format=md)
[27](https://wordpress.org/support/users/codeamp/replies/page/27/?output_format=md)
[28](https://wordpress.org/support/users/codeamp/replies/page/28/?output_format=md)
[→](https://wordpress.org/support/users/codeamp/replies/page/19/?output_format=md)