Kiran
Forum Replies Created
-
AuthorPosts
-
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
October 13, 2017 at 7:01 am in reply to: Blank Page on GD Home Page – Conflict with theme/plugin #400372Thanks for letting us know 🙂
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
Hi Irene,
I have added snippet to redirect to author page after login.
Check and let us know.Kiran
October 12, 2017 at 12:47 pm in reply to: Using the API to create an (Outside WP) Management Console #400187Thanks for letting us know 🙂
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
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
Thanks for letting us know 🙂
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
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
October 12, 2017 at 5:02 am in reply to: Using the API to create an (Outside WP) Management Console #400120Hi 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 exampleHere 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-374259Let us know.
Kiran
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
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
October 11, 2017 at 10:41 am in reply to: Blank Page on GD Home Page – Conflict with theme/plugin #399985Hi 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,
KiranThis reply has been marked as private. -
AuthorPosts