maxcondor
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Custom Admin Interface] Admin Menu not visibleI installed the plugin on a new site and I also have the same problem. I tried to dial woocommerce but the problem persists!
Forum: Plugins
In reply to: [Facebook for WooCommerce] FB Product SetsThank you.
the mapping created with fbproduct set, create the sets on the facebook shop?i upgraded elementor to 3.2.1 and i have the same problem. How did you solve?
ThanksForum: Developing with WordPress
In reply to: order by datethanks
Forum: Developing with WordPress
In reply to: order by dateI modified the code hoping to get it as a date-only sort but using posts_orderby. However, I do not get the desired result
add_action('elementor/query/q_test_primopiano', function($query){ $args = array( 'meta_query' => array( 'relation' => 'AND', 'field1' => array( 'key' => 'ordinamento', 'compare' => 'EXISTS' ), 'field2' => array( 'key' => 'visibile', 'value' => '1', 'compare' => '=' ), 'field3' => array( 'key' => 'visibile_in_home', 'value' => '1', 'compare' => '=' ), ), ); $query->set('meta_query', $args); add_filter('posts_orderby','modifica_ordine',$query); function modifica_ordine($ordine_personalizzato) { $ordine_personalizzato= "post_date DESC"; } });
- This reply was modified 4 years, 1 month ago by maxcondor.
Forum: Developing with WordPress
In reply to: order by dateok grazie, ci provo.
Grazie- This reply was modified 4 years, 1 month ago by maxcondor.
Forum: Developing with WordPress
In reply to: Multiple orderby on queryI rewrote the query.
But it does not work,
it doesn’t return any records to meadd_action( ‘elementor/query/q_img-copertina-max’, function( $query ) {
$meta_query = [
‘relation’ => ‘AND’,
[‘key’ => ‘visibile’,
‘value’ => ‘1’,
‘compare’ => ‘=’,
] ,
[
‘key’ => ‘vis_cop_cat’,
‘value’ => ‘1’,
‘compare’ => ‘=’
],
‘n_ordinamento’=> [
‘key’ => ‘ordinamento’,
‘compare’ => ‘EXISTS’
],
‘n_date’=> [
‘key’ => ‘post_date’,
‘compare’ => ‘EXISTS’
]];
$query->set(‘meta_query’, $meta_query);
$query->set( ‘orderby’, array(
‘n_ordinamento’ => ‘DESC’,
‘n_date’ => ‘DESC’,));
Forum: Plugins
In reply to: [Advanced Queries] Post by view count + elementorHi Guys, What i do to get the post views is to install WP-PostViews plugin.
Add a field group with one field called Views using Advanced custom fields to posts.
Set the the field to numeric and default value to 0.Then go ahead and use that field anyway you want to order your posts since you have a numeric value returned.
Can you be more precise? how do you increase the custom field with new visits?
thank youForum: Plugins
In reply to: [Advanced Queries] ACF related by Post Object fieldanyone help?
Forum: Developing with WordPress
In reply to: Fatal error WP_QueryOk
Forum: Developing with WordPress
In reply to: Fatal error WP_QueryPerfect!
Thanks!Forum: Developing with WordPress
In reply to: Fatal error WP_Query‘name’ => ‘home’,
in this way the query will be executed only on the “home” page. is it correct?
Forum: Developing with WordPress
In reply to: Fatal error WP_QueryHello
I inserted the code using the Code Snippets plugin. the site crashes.
I created a child theme of Astra and placed the code in the function.php file. It works!
The problem is that the query affects all pages on the site including the back office. Is there any way to query for a single page only?Forum: Plugins
In reply to: [Phoenix Media Rename] edit post and rename filescan’t I edit the file name from the post editor?
Am I forced to open Media Library?Forum: Plugins
In reply to: [Code Snippets] Multiple queriesPerfect thanks