thanks in advance
]]>I’ve just installed your plugin and have been configuring it. But now, when I use the shortcodes [glossary-cats] it doesn’t show the glossary categories at all. Instead it shows the list of terms, hence doing the same thing as the shorcode [glossary-terms]. Am I doing something wrong?
Thank you for your attention and availability,
Best regards,
Marta C.
]]>I just updated to the latest verion of WC-Vendors (2.2.0) and noticed that I’m now having issues with no products being listed/returned under the Admin -> Products page when filtering by a specific product category, which appears to be caused by the introduction of this new add_filter( 'posts_clauses', array( $this, 'filter_by_vendor' ) );
method that was added to the wc-vendors/classes/admin/class-product-meta.php file, which more specifically adds this additional &vendor=nochange
get variable in the wp-admin/edit.php
page url and this seems to prevent any products from being returned when filtering.
Commenting out this line appears to resolve the issue, but instead of modifying the source of the plugin, I’ve added the following method to my functions.php to unset this post variable for the time being:
add_action( 'admin_init', function() {
global $pagenow;
if (( $pagenow == 'edit.php' ) && ($_GET['post_type'] == 'product')) {
if (isset($_GET['vendor']) && $_GET['vendor'] == "nochange") unset($_GET['vendor']);
}
}, 2000);
This fixes this for now, but obviously not the best solution to this issue.
Note that I also tried to unset the filter by using a method like remove_filter( 'posts_clauses', array( 'WCV_Product_Meta', 'filter_by_vendor' ) );
but this didn’t seem to work.
Thanks!
]]>I’m quite new to WordPress, I’ve been finding my way around ok until I hit this little snag today. I’m trying to hide the Woo Commerce category titles underneath the images, but I don’t want it to affect the titles under the product images.
Thanks in advance for any advice!
]]>For some reason, every time I click on one of the categories on the main menu…it just sends to a blank page. Was working a couple of weeks ago – no problem. Thoughts?
]]>Looking at browser JS console I see following error (in Chrome):
Uncaught Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element.
at String.<anonymous> (select2.js?ver=3.1:1324)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,moxiejs,plupload&ver=6742d8f9006702f601b0a655d1ccbfd9:2)
...
I see this in Firefox console:
Error: Option 'ajax' is not allowed for Select2 when attached to a <select> element. select2.js:1324:31
I’m running WP 5.1.1 on PHP 7.x
Browsers are running on Ubuntu 18.x
I am looking to hide a single product custom attribute when a specific category is attached to a product. I am thinking there may be some PHP code to do this. Something like this code here, but other then removing images, it can hide a single custom attribute
/**
* Remove product content based on category
*/
add_action( 'wp', 'remove_product_content' );
function remove_product_content() {
// If a product in the 'Cookware' category is being viewed...
if ( is_product() && has_term( 'Cookware', 'product_cat' ) ) {
//... Remove the images
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
// For a full list of what can be removed please see woocommerce-hooks.php
}
]]>I’m intending to purchase the pro version of your theme as the ‘navigator’ template is pretty much what I’ve built. D’oh!
However, I’m a bit too far down the line with this build to start again.
So, what I wonder is if it’s possible to display any category as a simple grid of featured image thumbnails?
Currently, they display individually, full width, with header, meta , large square image etc.
They also only display 10 or so with pagination at the bottom.
So, is it possible to display all of them in say a grid of four across with no meta or text?
This is how I’d like all categories to look (elementor post grid widget)
https://wearenoisy-co-uk.stackstaging.com/projects/
and this is how they look by default (my custom css has removed the pagination)
https://wearenoisy-co-uk.stackstaging.com/category/all/
This is the css I started with (not final by any means) but it’s not great (I’m no css expert I’m afraid). I basically just keep trying things until it looks the way I want.
.category-all .entry-header, .category-all .entry-summary,.category-all .entry-meta {
display:none;
}
.category-all .post-image {
float:left;
width:25%;
padding:0;
margin:0;
}
.category-all .post-image img {
padding:0;
margin:0;
}
.category-all #article {
display:inline-block;
}
Or, is it possible to utilize the Elementor post grid widget on each category page, which would be ideal.
Thanks very much in advance for any help you might be able to give.
]]>I’ve found the code that features this in inc/structure/post-meta (around line 164)
If I edit the main theme file, it changes.
However, if i copy the post-meta file to my child theme with the same folder structure, it doesn’t work.
I’ve also copied this function to my child functions.php but this doesn’t work either.
I’m no coder so am sure it’s something stupid I’m doing so any help greatly appreciated.
Thanks very much in advance. I’m sure answering stupid questions is a full time job ; )
]]>