Greg Winiarski
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Add to Favourites icon/linkHi,
this will be rather difficult right now, because in order to show the like/favorite button you would need to customize the original Classifieds List templates which will require changes in the original WPAdverts source code
Hi,
- having different Classifieds Publish fields/forms for different categories is possible with the Custom Fields extension https://wpadverts.com/doc/different-form-for-each-category/
- you can create different views for categories but this will require some custom programming, you would need to have a taxonomy-advert_category.php template file that will detect the category and load a proper template (for each category you can create a template using blocks editor in the wp-admin -> Pages panel, so it will come down to checking the category and displaying a template with do_blocks() function)
BTW. I see you sent the same question using a contact form, please do not double post your questions, thanks.
It’s not possible to hide it because the link does not have any unique CSS class.
Hi,
please add the code below in your file with code snippets or theme functions.php file, it will remove the link
add_filter( "adverts_manage_edit_public_link", "__return_empty_string" );Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Hide empty categories in shortcodeFor sub-categories you will need another code snippet
add_filter( "adverts_categories_query_sub", function( $args ) {
$args["hide_empty"] = 1;
return $args;
} );Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Hide empty categories in shortcodeHi,
you can hide the empty categories by adding the below code snippet in your theme functions.php file (or even better by creating a new blank plugin and pasting the code there https://wpadverts.com/blog/how-to-use-code-snippets-in-wordpress/)
add_filter( "adverts_categories_query", function( $args ) {
$args["hide_empty"] = 1;
return $args;
} );Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Translation doesn’t load…Hi,
i am not sure to be honest, this appears to be an issue on few sites, i will need to dig into it before releasing new WPAdverts version.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Delete button does not workHi,
thanks for the feedback, in the next WPAdverts release i will remove the comments from this file, so updating should not cause any issues.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Delete button does not workHi,
most likely this is issue specific to your website (maybe a custom jQuery is being loaded instead of the default one), please send me a message using a contact form at https://wpadverts.com/contact/ i will send you back the file without comments, or you can just open the wpadverts/templates/block-partials/modal.php file remove from it all the comments and see if it helps?
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Delete button does not workHi,
i cannot seem to replicate this issue, do you have the same problem when you try to delete an Ad on the demo site here https://demo.wpadverts.com/lite/manage/ (login as user/user)?
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Very Confusing Login/Signup PageHi,
in short, the purpose is that each part of the plugin can be used in a standalone mode (not requiring other blocks or shortcodes).
That said if you have one central login and/or registration page you want to use then you can point to it with the login_url and register_url filters
add_filter( 'register_url', 'my_register_url' );
function my_register_url( $url ) {
if( is_admin() ) {
return $url;
}
return "https://example.com/resgister-url/";
}
add_filter( 'login_url', 'my_login_url', 10, 2 );
function my_login_url( $url, $redirect = null ) {
if( is_admin() ) {
return $url;
}
$r = "";
if( $redirect ) {
$r = "?redirect_to=".esc_attr($redirect);
}
return "https://example.com/login-url/".$r;
}The code you can put in your theme functions.php file, just change https://example.com/resgister-url/ and https://example.com/login-url/ to an actual login and registration pages on your website.
Also, if you use the Authors extension and the [authors_manage] shortcode then you do not need the Classifieds Manage block (or the [adverts_manage] shortcode) at all as this block/shortcode is already a part of the [authors_manage].
Similarly with the Classifieds Publish block (or [adverts_add] shortcode) unless you want annonymous users to be able to post ads.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Translation doesn’t load…Hi,
please try moving the translation po/mo files to the system folder (wp-content/languages/plugins) and see if it helps?
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Please Improve UI designYou can create your own custom version of the Ad details template as shown here https://www.youtube.com/watch?v=lbNckGMldL8
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] BUG: duplicate filterHi,
thanks for the report, the second option should have the following label “HTML – removes unsafe HTML tags and attributes.”, it will be updated in the next release other than the options should be fine.
What CF version are you using? Line 194 in the class-field-autocomplete.php file should be empty, also the questions regarding paid extensions please send using the contact form at https://wpadverts.com/contact/ the forum is for the free version only.
Hi,
there is no functionality in WPAdverts (or other extensions) that would reload the search form when you change the category in a dropdown.