Artneo
Forum Replies Created
-
Thank you so much @salih24by7! Your comment helped me out on how to dismiss errors when accessing public endpoints when you have the JWT Authentication for WP REST API plugin active. Thanks! ??
Error:
Warning: Undefined array key “HTTP_AUTHORIZATION” in \app\public\wp-content\plugins\jwt-authentication-for-wp-rest-api\public\class-jwt-auth-public.php on line 222
Warning: Undefined array key “REDIRECT_HTTP_AUTHORIZATION” in \app\public\wp-content\plugins\jwt-authentication-for-wp-rest-api\public\class-jwt-auth-public.php on line 225I was imagining that something like this would solve this request:
<script> jQuery(document).ready(function($) { $('.ui-state-disabled').each(function() { $(this).prev().addClass("ui-state-disabled"); $(this).next().addClass("ui-state-disabled"); }); }); </script>
But how to run this code only after the calendar has finished loading so it’s possible to target the calendar dates with this script?
- This reply was modified 2 years, 4 months ago by Artneo.
Forum: Plugins
In reply to: [Category Order and Taxonomy Terms Order] Orderby by term in WP_QueryI tried getting all snippets of code and creating the following function:
/** * Sort the elements by role name, or customised catgory order * * @param mixed $sort_list * @param mixed $sort_view_id * @param mixed $orderBy * @param mixed $query */ function sort_by_role_name($post_order_list, $sort_view_id, $orderBy, $query) { //Change to required taxonomy $_apply_for_taxonomy = "role"; if (count($post_order_list) > 1) return $post_order_list; //check if is archive or a taxonomy view if (count($query->tax_query->queries) > 1) return $post_order_list; //avoid endless loop in case using this function on multiple level terms global $_SCN_in_the_loop; if ($_SCN_in_the_loop) return $post_order_list; $_is_archive = FALSE; $_is_term = FALSE; if (count($query->tax_query->queries) > 0) { //ensure there's a single term reset($query->tax_query->queries); $tax = current($query->tax_query->queries); if (is_array($tax['terms']) && count($tax['terms']) > 1) return $post_order_list; $_is_term = TRUE; } else $_is_archive = TRUE; //retrive the terms $args = array( 'taxonomy' => $_apply_for_taxonomy, 'orderby' => 'name', ); if (count($query->tax_query->queries) > 0) { //ensure there's a single term reset($query->tax_query->queries); $tax = current($query->tax_query->queries); if (is_array($tax['terms']) && count($tax['terms']) > 1) return $post_order_list; $_is_term = TRUE; } else $_is_archive = TRUE; //retrive the terms $args = array( 'taxonomy' => $_apply_for_taxonomy, 'orderby' => 'name', ); if ($_is_term) { //retrieve a list of existing terms reset($query->tax_query->queries); $tax = current($query->tax_query->queries); if (is_array($tax['terms'])) { reset($tax['terms']); $term_id = current($tax['terms']); } else $term_id = $tax['terms']; if ($tax['field'] == 'slug' || $tax['field'] == 'name') { $term_data = get_term_by($tax['field'], $term_id, $_apply_for_taxonomy); $term_id = $term_data->term_id; } $args['child_of'] = $term_id; } $terms = get_terms($args); //retrieve a list of items for each of the terms if (count($terms) < 1) return $post_order_list; $_SCN_in_the_loop = TRUE; global $APTO; $sort_view_post = get_post($sort_view_id); $sort_list_settings = $APTO->functions->get_sort_settings($sort_view_post->post_parent); $posts_list = array(); foreach ($terms as $term) { $args = array( 'post_type' => $sort_list_settings['_rules']['post_type'][0], 'posts_per_page' => -1, 'fields' => 'ids', 'orderby' => 'menu_order', 'order' => 'ASC', 'tax_query' => array( array( 'taxonomy' => $_apply_for_taxonomy, 'field' => 'id', 'terms' => array($term->term_id), ), ), ); $term_posts_query = new WP_Query($args); $posts_list = array_merge($posts_list, array_values($term_posts_query->posts)); } $_SCN_in_the_loop = FALSE; return $posts_list; }
But it doesn’t work when setting Order By to Custom Function:
My custom query is set like this and I need to order by role order:
Thank you for your help in advance!
Forum: Plugins
In reply to: [Category Order and Taxonomy Terms Order] Orderby by term in WP_QueryDo I need to follow this tutorial for custom taxonomy order by role?
https://www.nsp-code.com/how-to-order-posts-by-category-name/What would be the function?
function sort_by_role_name( $post_order_list, $sort_view_id, $orderBy, $query ) { // Change to required taxonomy $_apply_for_taxonomy = "role"; }
The AMP support seems to have stopped working suddenly for me. I’m using AMP plugin version 1.5.5 and WPForms version 1.6.1. Template mode is set to Standard and SSL is activated.
There are 9 invalid AMP issues now on my contact page: https://egeacaixas.com/contato
Image: https://imgur.com/a/xOdhRtn
Any idea what could be happening?
Forum: Plugins
In reply to: [AMP] amp-autocomplete inline style not renderingAwesome, thanks!
Forum: Plugins
In reply to: [AMP] amp-autocomplete inline style not renderingThank you Alberto! I felt in love with the speed and all AMP’s components functionalities. So I’m trying to create my own WordPress themes focusing on AMP and I’m learning a lot along the way. Now I’m creating websites only with AMP for my new clients and your plugin does help me a lot with comments, forms and Gutenberg compatibility. Looking forward to your future plugin updates and news. Thank you again!
Forum: Plugins
In reply to: [AMP] amp-autocomplete inline style not renderingI just checked it and it’s rendering the inline style just fine. Thank you Weston for the quick response and solution.
Forum: Plugins
In reply to: [AMP] amp-autocomplete inline style not renderingAwesome! Thank you so much for the reply!
Forum: Plugins
In reply to: [AMP] Wrong amp-img width/height for core/image Gutenberg blockI see, so maybe there might be a function inside my theme that’s making this conflict… I’ll check it. Thanks!
Forum: Plugins
In reply to: [AMP] Wrong amp-img width/height for core/image Gutenberg blockHello Renee,
I’m afraid Version 1.4.3 didn’t solve this issue.
You may get a copy of the theme and posts to import here:
https://drive.google.com/drive/folders/1mlA2Oqr12E75ajLuLB0EDzcggt5f699Z?usp=sharingTest it by installing the theme and importing the posts. Then convert the classic mode to Gutenberg blocks.
Forum: Plugins
In reply to: [AMP] Wrong amp-img width/height for core/image Gutenberg block– What WordPress theme do you have active?
– My custom theme. Checked and it’s not any CSS conflict.– Do you have any active image or optimisation plugins?
– Only AMP plugin activated.– Have you tested on any other sites using the same images?
– No, but I don’t think it’s related to the images at allWould you like any files or access to take a further look?
I’m having the same issue. Looking forward to this next update.
It’s not working for me either… it’s saying my page has 0 words. I’m not using WYSIWYG field too – only repeater, text, textarea and image fields
- This reply was modified 5 years, 3 months ago by Artneo.
Forum: Reviews
In reply to: [Form Vibes - Database Manager for Forms] Solution with great designI reactivated the plugin and it’s showing all my previous tests… maybe it does take some time to show the data after the user sends the form.