Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi,
It’s a bit hard to tell based on the front-end here, if the post type ordering is enabled, then it should work.
Can you add temporary back-end access? I would like to check and rectify all the configuration to see if there is anything incorrect. Thank you!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi!
1. You can set it here: https://i.imgur.com/tyrDsSe.png
Enter “unset” to the field, and the scrollbar will disappear 🙂2. That I’m not sure. If this is on the results page, then it is outside of the scope of the plugin, as it is controlled by the theme. If you can share a URL to this, then I can tell for sure.
3. Well, it is the purpose of the filter. You might want to check and experiment with different checkbox logigs here: https://i.imgur.com/ScpExZx.png
Also make sure that this option is enabled, so if all checkboxes are unchecked, then the filter is ignored: https://i.imgur.com/lbVDK5a.pngErnest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou are very welcome, I wish you a great day too!
Ernest Marcinko
KeymasterThank you!
I have found the problem, it was a type issue within a hook, which expected a block editor block type, but recieved a standard class incorrectly. I have made an adjustment within the search code to avoid that check, now the error should be gone.
I have noted this as a compatibility issue, and I will make sure to include this fix in the upcoming version.
Ernest Marcinko
KeymasterThank you very much!
The back-end login works perfectly, but the FTP account does not seem to have permissions to view the site folder, I can only see an empty home directory. Can you please check the permissions? Thank you!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Can you share the PHP error log as well as add temporary log-in and FTP details?
The error log should help identify the exact location of the issue, and with FTP details I can debug through the code and possibly eleminate the conflict. Thank you!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterOkay.
So say you have a single drop-down, which appends the “the_order” query variable, so the URL looks like this “…&the_order=yourvalue” on the results page. Then it is accessed on page load within the code via the
$_GET['the_order'].Here is a custom code snippet which handles that, it has examples for id, date, title, relevance and even string and numeric custom field based ordering:
// Custom ordering add_filter( 'asp_query_args', function ( $args ) { // The values allowed in the the_ordering variable $allowed_orderings = array( 'relevance', 'id', 'id_reverse', 'date', 'date_reverse', 'alpha', 'alpha_reverse', 'numeric_custom_field', 'string_custom_field', ); if ( !isset($_GET['the_order']) ) { return $args; } $ordering = sanitize_text_field( wp_unslash( $_GET['the_order'] ) ); if ( !in_array($ordering, $allowed_orderings, true) ) { return $args; } switch ( $ordering ) { case 'id': $args['post_primary_order'] = 'id DESC'; break; case 'id_reverse': $args['post_primary_order'] = 'id ASC'; break; case 'date': $args['post_primary_order'] = 'post_date DESC'; break; case 'date_reverse': $args['post_primary_order'] = 'post_date ASC'; break; case 'alpha': $args['post_primary_order'] = 'post_title DESC'; break; case 'alpha_reverse': $args['post_primary_order'] = 'post_title ASC'; break; case 'numeric_custom_field': $args['post_primary_order'] = 'customfp DESC'; $args['post_primary_order_metatype'] = 'numeric'; $args['_post_primary_order_metakey'] = 'custom_field_name'; break; case 'string_custom_field': $args['post_primary_order'] = 'customfp DESC'; $args['post_primary_order_metatype'] = 'string'; $args['_post_primary_order_metakey'] = 'custom_field_name'; break; case 'relevance': default: $args['post_primary_order'] = 'relevance DESC'; break; } return $args; } ); -
AuthorPosts