Greg Winiarski
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] youtube video embeddedHi,
hmm are you pasting the embed as a Youtube link and if so then what WPAdverts version are you using?
Pasting embeds as links (for example
https://www.youtube.com/watch?v=xxxxxxx) should already work fine.Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Category Not Showing ListingsHi,
do you mean that there is only one category that has this problem?
If you could additionally send a link to the page where you see this issue then it would be helpful.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Social Share For Ads?Hi,
we do not have social media sharing functionality, so yes using some third-party plugin that allows sharing is the correct way to do it.
The best way to implement it would be to start with creating your own Ad details template (as shown here https://www.youtube.com/watch?v=BIhvHABf2sc or here https://www.youtube.com/watch?v=lbNckGMldL8), once you have it, in the template add a block that shows sharing buttons, you should be able to install such block with a plugin like https://wordpress.org/plugins/social-sharing-block/
- This reply was modified 2 months, 3 weeks ago by Greg Winiarski. Reason: Better suggestion for social media sharing plugin
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Support for Modern Image Formats pluginI haven’t looked at it, but if this code works for you put it in your theme functions.php file or create a new blank plugin (https://wpadverts.com/blog/how-to-use-code-snippets-in-wordpress/) and put it there, you do not need it in the WPAdverts core.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Yoast XMl sitemap addonHi,
having the Custom Post Type included in the Yoast SEO sitemap does not require any coding, the ads should be included assuming your “advert” custom post type is public https://yoast.com/help/does-yoast-seo-work-with-custom-post-types/
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Undefined array key “custom_contact” ErrorHi,
this will be fixed in the next release, in the meantime, since this is only a warning you should be able to hide it by opening the wp-config.php file and adding there a line
define("WP_DEBUG",false);Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Unable to activate licenseHi,
usually when this happens it is because our server is blocking requests from your server, please try using updates mirror instead as explained here https://wpadverts.com/doc/error-while-entering-a-license-code/
Hi,
if you would like to share the German (and Spanish) translations then it would be great as the current ones are for older versions and many of the phrases are probably missing.
WPAdverts does not have a place to do the translations online, so it would be best if you could send me the po/mo files by email to support at wpadverts.com or send a download link using the contact form at https://wpadverts.com/contact/ i will include them in the next release, thanks!
Hi,
the default price plan you can set in the wp-admin -> Classifieds -> Options -> Payments panel.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Support for Modern Image Formats pluginThese blog posts are almost 3 years old, it’s unclear when and if this will be merged.
Hi,
you can create your own version of the Ad details page (as show for example here https://www.youtube.com/watch?v=lbNckGMldL8), then click on the Contact Methods block and change this title there.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Support for Modern Image Formats pluginBTW. I tested with Converter for Media plugin https://pl.wordpress.org/plugins/webp-converter-for-media/ and it works fine on my dev site without any special changes, few notes though:
- The plugin does not seem to do conversion on-upload but rather somewhere in the background, so after uploading a file it might look like the file is a JPG file, but in the preview or when viewing the Ad it should be already converted to webp.
- The Converter for Media overwrites file paths, so in the source code the file will still have .jpg or .png extension, but if you investigate with Chrome Developer Tools for example you will see the file type is webp (i suppose it is doing this to avoid changing your posts and pages content).
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Support for Modern Image Formats pluginHi,
i will look into integrating with one of the WebP plugins, it should be available in the next release, although i cannot tell right now which plugin i will be integrating with, proably the one with the most installs that does not rely on any third-party services.
Hi,
if you do not have the Custom Fields extension you can make the Gallery field require by adding the below code in your theme functions.php file (or even better creating a new blank plugin and pasting it there )
add_filter( "adverts_form_load", function( $form ) {
if( $form['name'] != "advert" ) {
return $form;
}
foreach( $form["field"] as $key => $field ) {
if( $field["name"] != "gallery" ) {
continue;
}
$form["field"][$key]["validator"] = array();
// Set minimum and maximum number of files user can upload.
// Note. setting the "min" value basically makes the gallery a required field.
$form["field"][$key]["validator"][] = array(
"name" => "upload_limit",
"params" => array(
"min" => 1, // minimum files to upload
"max" => 200 // maximum file uploads
)
);
}
return $form;
} );This will force users to upload at least one file but not more than 200 files.
Hi,
this would work only with the depracated Classifieds Details block, for a few versions now the Ad details pages are being built from multiple individual blocks, so this action is not being run.
To add a shortcode to the Ad details page there are two options:
- if your theme support full-site-editing, create an Ad details template as shown here https://www.youtube.com/watch?v=1cae_SLrTmY and enter your shortcode somewhere in the template.