Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
its seems like some sort of css or js issue, please provide ftp details and i will debug it.
Thanks,
Stiofan
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
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
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
August 22, 2017 at 4:17 pm in reply to: Direct File Access Call Prevention for Directory Starter and its child themes. #392334The error output is dependent on the server, no errors should be shown on a production server, this has nothing to do with GeoDirectory!!
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
The wp-admin details dont work and the FTP ones do log me in but can’t upload or overwrite files.
Stiofan
August 22, 2017 at 10:12 am in reply to: Direct File Access Call Prevention for Directory Starter and its child themes. #392277At this point i really have no idea what you mean or are on about, sorry…
Stiofan
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
Hi Utsav,
Are u using server side clustering?
Please provide wp-admin and FTP details and i’ll take a look.Thanks,
Stiofan
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
Yes just now its just ordering by a-z, i’ll add a task to add some ordering parameters to the widget.
Stiofan
August 21, 2017 at 5:26 pm in reply to: Is there a short code for "my listings" or "my account" #392205You are welcome! 🙂
August 21, 2017 at 4:48 pm in reply to: Is there a short code for "my listings" or "my account" #392199Yes, i had to add a test listing for that user as it had no listings.
Stiofan
August 21, 2017 at 4:47 pm in reply to: Direct File Access Call Prevention for Directory Starter and its child themes. #392197There are no problems.
Stiofan
-
AuthorPosts