Code Amp
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Featured images not showing** 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
In reply to: [Custom Layouts - Post + Product grids made easy] Featured images not showingHey 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
– RossHi 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.
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
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
Hey @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
2toadd_filterand then added$idto the functionlayout_query_argsPlease 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
Hey @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
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.
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://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
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
Hey @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
Hey @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
Best
Hey @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/
It’s the third one –
custom-layouts/layout/query_argsI hope that helps!
Best
Hey @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
– RossHey @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