Myrianne
Forum Replies Created
-
AuthorPosts
-
and how exactly would “relevance” be calculated? it seems the system has this behavior when we select only a category and leave the keyword field empty as well.
Nevertheless, it seems a pretty simple thing to modify in your code to enable use to use filters to modify the orderby part of query in all cases.
Ive noticed that this line adds the orderby statements AFTER the apply_filter function is called… wouldnt putting the “apply_filter call” AFTER the adding of this code settle the issue?
instead of:$orderby = apply_filters(‘geodir_posts_order_by_sort’, $orderby, $sort_by, $table);
$orderby .= $table . “.is_featured asc, $wpdb->posts.post_date desc, $wpdb->posts.post_title “;
return $orderby;we would have:
$orderby .= $table . “.is_featured asc, $wpdb->posts.post_date desc, $wpdb->posts.post_title “;
return $orderby;
$orderby = apply_filters(‘geodir_posts_order_by_sort’, $orderby, $sort_by, $table);Then we would be able to strip the DATE part of the orderby statements ourselves using filters… does that make sense?
thanks Stiofan
please refer to this part of my comment, it explains exactly what I need done, the commented part is the original code, the other part is my modified code.
Basically, we just need to drop the DATE asc ordering from the default sql statement generated by this file, and there seems not to be a mean to do so without modifying this file:
wp-content/plugins/geodirectory/geodirectory-functions/listing_filters.php
// line 477
//$orderby .= $table . “.is_featured asc, $wpdb->posts.post_date desc, $wpdb->posts.post_title “;
$orderby .= $table . “.is_featured asc, $wpdb->posts.post_title “;At this point if you do not understand, im assuming you are not a php developper or are confused, so please get Stephan or someone that knows its way around the code to look at this. As a customer we assume that our questions are going to be looked at and answered by qualified PHP programmers.
Thanks for your honest tentative to help, and lease be assured that I mean no disrespect. 😉
Hello, its been now 7 days without answers from the support. Does its possible to check my request?
Thanks, here’s a phone number to join me 1-800-928-7112
This reply has been marked as private.hello,
about
ISSUE #1 – the members ads when expiring are being downgraded to a “draft” stateabout your answer
it seems that the option you are mentioning is already set to a package that is free of charge, “Forfait Gratuit”.snapshot attached.Also included, the snapshot of the option the choose if and what happens when ads expires.
We have tried to set it so the monthly payment ads dont expire, but what we would really need is for them to expire ONLY if payment fails, not systematically each xx days or year.SOLUTION #1 > Have the ads never downgrade to the “draft state”
QUESTION > if we set the downgrading package to the exact same package, what exactly will happen when the ad hits the end of the first cycle?
ill include the login credential in the next message so you can login and see for yourself.
July 25, 2017 at 6:17 pm in reply to: Payment addon > monthly payments deactivates post each month's end #388454This reply has been marked as private.ok thanks
it was a varnish cache issue. thanks anyways!
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.ok thanks that works. have a great day
I understand, but it used to work with the youtube address only… i dont see what changed since then… on my localhost install it still works fine.
is there a hook/filter that I could use to ensure the embed code is entered correctly – not just the addresses? I know I could javascript it, but how about on the server side, hooking into the save_post hook, then testing the value of the video field, and adding the embed wrap around the address?
This reply has been marked as private.This reply has been marked as private. -
AuthorPosts