How to create tutorials/book in WordPress [closed]
How to create tutorials/book in WordPress [closed]
How to create tutorials/book in WordPress [closed]
I would try to rename the custom function and add meta_query too! So it’d be like this: function my_shop_custom_products_query( $q ) { $q->set( ‘meta_key’, ‘_thumbnail_id’ ); $q->set(‘orderby’, ‘meta_value_num’); $q->set(‘order’, ‘DESC’); $q->set( ‘meta_query’, array( array( ‘key’ => ‘_thumbnail_id’, ‘compare’ => ‘>=’, ‘value’ => ‘0’ ))); } add_action( ‘woocommerce_product_query’, ‘my_shop_custom_products_query’ ); If for some reason it didn’t … Read more
There’s a few things to consider, like where you’re putting this… …you didn’t specify so here’s how it would work in a custom post-type: First you’d have to add the metabox and the inputs to upload the file, then make sure that everything gets saved… <?php function add_your_custom_posttype_metaboxes() { //you have to set the above … Read more
Can I share predefined fonts from theme_support with a gutenberg component?
How to add new tabs in post.php
Passing RichText attributes to function onChange
Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
I’ve used a plug-in called Publications Archive to do much of that. The only thing it won’t do is output a sidebar widget to show new downloads, but otherwise you can upload via the admin UI, categorize uploads, and create a nice, structured and styled list on a page. Make sure you read the issues … Read more
Justin Tadlock’s Members plugin works on multisite: http://wordpress.org/extend/plugins/members/
From what I read on the plugins description it’s compatible with WP 2.9.2. Next to that I assume from the description that it interacts with the theme a lot. I would therefore install the Default (WordPress Theme) and try if it works with that theme. Maybe it works with this theme? Maybe you just run … Read more