Kiran

Forum Replies Created

Viewing 15 posts - 4,681 through 4,695 (of 6,022 total)
  • Author
    Posts
  • in reply to: Popular post view widget, sort by + where clause #400374

    Kiran
    Moderator
    Post count: 7069

    Hi There,

    You forgot to provide FTP host.

    Use following code snippet and let us know how it goes.

    
    
    function _gd_custom_widget_listings_where_date( $where ) {
    	global $plugin_prefix, $gd_query_args_widgets;
    
    	$query_args = $gd_query_args_widgets;
    	if ( empty( $query_args ) || empty( $query_args['is_geodir_loop'] ) ) {
    		return $where;
    	}
        
    	$post_type = 'gd_vinresa'; // Change post type here
    	$field = 'geodir_avresedatum'; // Change field name here
    
    	if ( !empty( $query_args['post_type'] ) && $query_args['post_type'] == $post_type ) {
    		$date_now = date( "Y-m-d" );
    		$date_param = isset($_REQUEST['archive']) ? '<=' : '>=';
    		$table = $plugin_prefix . $post_type . '_detail';
    		$where .= " AND $table.$field $date_param '$date_now' ";
    	}        
    
    	return $where;
    }
    add_filter( 'geodir_filter_widget_listings_where', '_gd_custom_widget_listings_where_date', 10, 1 );

    Kiran

    in reply to: Blank Page on GD Home Page – Conflict with theme/plugin #400372

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

    in reply to: updating custom form field is not working #400364

    Kiran
    Moderator
    Post count: 7069

    Hi Muhammad,

    We need FTP credentials to look into because there seems conflicts during updating field.
    Please provide FTP credentials so we can look into more.

    Kiran

    in reply to: user page #400205

    Kiran
    Moderator
    Post count: 7069

    Hi Irene,

    I have added snippet to redirect to author page after login.
    Check and let us know.

    Kiran

    in reply to: Using the API to create an (Outside WP) Management Console #400187

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

    in reply to: Place payment/invoice settings #400167

    Kiran
    Moderator
    Post count: 7069

    Yes you can leave it blank or you can set https://YOURSITE.COM/index.php?wpi-listener=IPN&wpi-gateway=paypal
    During sending request to PayPal for payment the website already sending IPN url in request, you just have to enable IPN notifications.

    Kiran

    in reply to: Place payment/invoice settings #400152

    Kiran
    Moderator
    Post count: 7069

    Hi Vlad,

    You need to tick “Receive IPN messages (Enabled)”. After this enabled PayPal will send IPN messages to your website on payment transactions.

    Kiran

    in reply to: access my places #400151

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

    in reply to: access my places #400145

    Kiran
    Moderator
    Post count: 7069

    I have put that code under Admin > Snippets > Add link to My Dashboard widget.
    Now it adds link to dashboard widget.

    Let us know.

    Kiran

    in reply to: access my places #400121

    Kiran
    Moderator
    Post count: 7069

    Hi,

    Admin credentials no longer working.

    Execute following code snippet via snippet plugin & check link in dashboard widget.

    
    
    function _gd_custom_dashboard_links( $links ) {
        if ( $user_id = get_current_user_id() ) {
            $link = geodir_getlink( get_author_posts_url( $user_id ), array(
                'geodir_dashbord' => 'true',
                'stype'           => 'gd_place'
            ), false );
            
            $links .= '<li><i class="fa fa-list"></i><a class="gd-my-places-link" href="' . $link . '">' . __( 'My', 'geodirectory' ) . ' ' . __( 'Places', 'geodirectory' ) . '</a></li>';
        }
    
        return $links;
    }
    add_action( 'geodir_dashboard_links', '_gd_custom_dashboard_links', -1, 1 );

    Let us know.

    Kiran

    in reply to: Using the API to create an (Outside WP) Management Console #400120

    Kiran
    Moderator
    Post count: 7069

    Hi Derek,

    Currently GeoDirectory API plugin managing listings via API request. With the use of our plugin you can create listings, update listings, search listings, submit reviews etc.
    Managing payment via API request is not implemented yet, but it is already in our future tasks.
    Currently our main focus is on enhancing payment system with our new Invoicing plugin. Once we finish it we will move on implementing Payment System to manage payments via GeoDirectory API.

    To create/update listing, API request are submitted just same way that used in to create/update WordPress post. Just you have to use GeoDirectory API endpoints.

    Check following details for more info about using GeoDirectory API
    https://wpgeo.directory/rest-api/geodirectory-rest-api/ – Basic endpoints
    https://wpgeo.directory/rest-api/cpt/ – Basic field schema to create/update lisitng
    https://wpgeo.directory/rest-api/geodirectory-rest-api-endpoints/ – Each endpoints with example

    Here are some more posts
    https://wpgeodirectory.com/support/topic/update-listing-location-via-wp-api/#post-332863
    https://wpgeodirectory.com/support/topic/geo-api-post/#post-340710
    https://wpgeodirectory.com/support/topic/posting-review-rest-api/#post-374259

    Let us know.

    Kiran

    in reply to: access my places #399998

    Kiran
    Moderator
    Post count: 7069

    Hi,

    Option “professionals” only default selected if the widget on professionals page (post type archive).
    Do you want to add link there and remove box?

    Kiran

    in reply to: Popular post view widget, sort by + where clause #399986

    Kiran
    Moderator
    Post count: 7069

    Hi anders,

    The widget filtering is used by many GD widgets. So i am not able to provide snippet without checking your custom code & fields.

    Kiran

    in reply to: Blank Page on GD Home Page – Conflict with theme/plugin #399985

    Kiran
    Moderator
    Post count: 7069

    Hi Tony,

    I did some some debugging and found that theme YOOtheme causing conflicts with the widget.

    The theme has one function “displayWidget” that overwrites the widget visibility on front end. It executes that function via following hook

    add_filter('widget_display_callback', [$this, 'displayWidget'], 10, 3);

    You should ask theme developer for support with this details.

    Let us know.

    Thanks,
    Kiran

    in reply to: access my places #399979

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 15 posts - 4,681 through 4,695 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount