This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 556 through 570 (of 18,415 total)
  • Author
    Posts
  • in reply to: Results ordering not working #55644
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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!

    in reply to: Plugin Version #55641
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Plugin Version #55639
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Plugin Version #55637
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Full height for Checkboxes (Filter) #55636
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.png

    in reply to: Filtering #55635
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Site categories not showing #55626
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are very welcome, I wish you a great day too!

    in reply to: Site categories not showing #55624
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank 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.

    in reply to: Site categories not showing #55622
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank 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!

    in reply to: Plugin Version #55619
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Plugin Version #55614
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Plugin Version #55612
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Site categories not showing #55611
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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!

    in reply to: Filtering #55610
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Implement a sorting dropdown #55605
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Okay.

    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;
    	}
    );
Viewing 15 posts - 556 through 570 (of 18,415 total)