Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
Added, but i am in Ireland so i will be finishing for the night soon, ping me when you are online tomorrow.
Thanks,
Stiofan
If you have no other option i can run a function to restore the CPTs to default so u can get the menu items back?
Stiofan
1. have u got an example link?
2. You can set the widget either to show 0 excerpt or to show in list view.
Thanks,
Stiofan
Great! 🙂
Nope, did u update those two addons? If so that would have fixed it.
Stiofan
Hi George,
I can’t re-create #1
#2 fixed.Thanks,
Stiofan
Best thing to do is add 1 listing then export that as a template 🙂
Stiofan
This reply has been marked as private.Replace the advanced search JS/frontend.min.js with this:
https://pastebin.com/bSuR6BvJStiofan
Those other two addons are very out of date, you would need to update them via ftp or via this plugin https://wpgeodirectory.com/docs/useful-plugins/#easy
Thanks,
Stiofan
August 29, 2017 at 11:11 am in reply to: WP Database failure – '…geodir__detail' doesn't exist #393330Please make sure everything is upto date.
Thanks,
Stiofan
Hi Andrea,
I added the following code as a code snippet to your site.
Your urls should work like:
dev.YOURSITE.net/social/proposals/
dev.YOURSITE.net/social/proposals/?archive=truefunction _my_gd_listing_where_filter($where){ global $table; $geodir_post_type = geodir_get_current_posttype(); if($geodir_post_type=='gd_idea' || $geodir_post_type=='gd_project'){ $date_now = date("Y-m-d"); $date_param = isset($_REQUEST['archive']) ? '<=' : '>'; if (!is_admin()) { $where .= " AND $table.geodir_end_proposal_date $date_param '$date_now' "; } } return $where; } function _my_gd_listing_where(){ if (!is_admin()) { if (geodir_is_page('listing')){ add_filter('posts_where', '_my_gd_listing_where_filter', 10,1); } } } add_action('pre_get_posts', '_my_listing_loop_filter', 2); function _my_listing_loop_filter($query){ // fix wp_reset_query for popular post view widget if (!geodir_is_geodir_page()) { return; } if (isset($query->query_vars['is_geodir_loop']) && $query->query_vars['is_geodir_loop']) { _my_gd_listing_where(); } return $query; }Thanks,
Stiofan
added
Do you have skype? we might be able to make progress faster if we can communicate faster (text), what is your skype ID?
Thanks,
Stiofan
Hi Andrea,
Yes this is defiantly a customisation but i’ll give you an example code snippet.
You will have to filter the WHERE part of the query, if you provide wp-admin i will apply an example snippet to your site. Also if you can explain exactly where this should happen, just on the category list pages i guess?Thanks,
Stiofan
-
AuthorPosts