Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 4,111 through 4,125 (of 13,774 total)
  • Author
    Posts
  • in reply to: Maps not working #392346

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    its seems like some sort of css or js issue, please provide ftp details and i will debug it.

    Thanks,

    Stiofan

    in reply to: Archive display sorting #392339

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This would achieve that:

    
    
    add_action('geodir_before_listing','_my_listings_top');
    function _my_listings_top(){
    
    	global $wp_query;
    	$current_term = $wp_query->get_queried_object();
    	$cat_id = isset($current_term->term_id) ? $current_term->term_id :'';
    	$post_type = geodir_get_current_posttype() ? geodir_get_current_posttype() : 'gd_place';
    
    	$output = do_shortcode('[gd_listings post_type="'.$post_type.'" layout=5 category="'.$cat_id.'" post_number="4" list_sort="high_review" show_featured_only=1 ]');
    
    	if (strpos($output, 'no-listing') === false) {
    		echo "<h3>Featured listings</h3>";
    		echo $output;
    	}
    
    }

    Thanks,

    Stiofan

    in reply to: Help with migration #392338

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Can you explain exactly what you are trying to do? (export what to what)

    Also can you provide wp-admin, ftp and Database access to the dev site?

    Thanks,

    Stiofan

    in reply to: GD Booster MaxCDN Shutoff #392335

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You don’t have any widgets in your GD Home Content Section, you also had the home map twice.

    All you have to do is set your widgets.

    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The error output is dependent on the server, no errors should be shown on a production server, this has nothing to do with GeoDirectory!!

    in reply to: new listing default status not working for me #392332

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Andrew,

    In the next release there will be a setting for paid listings to set the status for those also, you will be able to set it to “Pending Review”

    I am just about to start release testing so it should be released in the next two days.

    Thanks,

    Stiofan

    in reply to: How to ensure "Mark Cluster" runs only once? #392313

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The wp-admin details dont work and the FTP ones do log me in but can’t upload or overwrite files.

    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    At this point i really have no idea what you mean or are on about, sorry…

    Stiofan

    in reply to: Archive display sorting #392275

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    OK, this will show what you want above the regular listings:

    
    
    add_action('geodir_before_listing','_my_listings_top');
    function _my_listings_top(){
    
    	global $wp_query;
    	$current_term = $wp_query->get_queried_object();
    	$cat_id = isset($current_term->term_id) ? $current_term->term_id :'';
    	$post_type = geodir_get_current_posttype() ? geodir_get_current_posttype() : 'gd_place';
    
        echo "<h3>Featured listings</h3>";
    	echo do_shortcode('[gd_listings post_type="'.$post_type.'" layout=5 category="'.$cat_id.'" post_number="4" list_sort="high_review" show_featured_only=1 ]');
    }

    This solution will order the listings how you want, i think you would prefer this one:
    For this to work you would need to go to GD>Place Settings>Sorting Options: and set the default to featured.

    
    
    add_filter('geodir_posts_order_by_sort','_my_custom_order_by',10,3);
    function _my_custom_order_by($orderby, $sort_by, $table){
    	global $wpdb;
    
    	if($sort_by=='is_featured_asc'){
    		$orderby .= " $wpdb->posts.post_title ASC, ";
    	}
    	return $orderby;
    }

    If you have any problems just let me know.

    Thanks,

    Stiofan

    in reply to: How to ensure "Mark Cluster" runs only once? #392267

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Utsav,

    Are u using server side clustering?
    Please provide wp-admin and FTP details and i’ll take a look.

    Thanks,

    Stiofan

    in reply to: Archive display sorting #392218

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is no exact way to do what you want just now, i’ll look at this tomorrow and see if i can think of an exact solution.

    Thanks,

    Stiofan

    in reply to: Popular Location #392215

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes just now its just ordering by a-z, i’ll add a task to add some ordering parameters to the widget.

    Stiofan

    in reply to: Is there a short code for "my listings" or "my account" #392205

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome! 🙂

    in reply to: Is there a short code for "my listings" or "my account" #392199

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes, i had to add a test listing for that user as it had no listings.

    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There are no problems.

    Stiofan

Viewing 15 posts - 4,111 through 4,125 (of 13,774 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount