• I am using the Woocommerce module to integrate with your plugin. For some reason, on the ad placement page, user can’t select one product, but only 3 at once, that is, all existing ones. At the same time, in the Packages section in the console, it is generally empty. Please help me set this up correctly.

Viewing 15 replies - 31 through 45 (of 83 total)
  • Thread Starter Triptikon

    (@triptikon)

    I understood. And when at least approximately it will be implemented?

    Plugin Author Greg Winiarski

    (@gwin)

    I am afraid we do not really have plans to do that as there is little demand for this functionality while it’s quite a complex problem with solution variyng from theme to theme.

    One thing you can try is add the code below in your theme functions.php file

    add_filter("adverts_post_type", function($pt, $name) {
       if($name != "advert") {
           return $pt;
       } 
       $pt["has_archive"] = "__do_not_use_this";
       return $pt;
    }, 10, 2);

    then go to the wp-admin / Settings / Permalinks panel and click the “Save Changes” button to reset WP router.

    Now you might be able to use the “vakansii” name for your page with Classifieds List and Search blocks.

    Thread Starter Triptikon

    (@triptikon)

    The WordPress theme editor doesn’t want to save this code – it says there’s an error in the return $pt; line. It also adds a note: syntax error, unexpected 'return' (T_RETURN)

    Plugin Author Greg Winiarski

    (@gwin)

    I am not sure the code does not seem to have any errors.

    Try getting it here https://gist.githubusercontent.com/gwin/6fa9214e15abe507925079452a2c1fb0/raw/29086e66e1288eb25500220f61625d2866bb6b09/change-advert-archive-page-name.php, or just download the file, put it in the wp-content/plugins folder and activate as a plugin from wp-admin / Plugins panel.

    Thread Starter Triptikon

    (@triptikon)

    The code in the link worked! Thank you very much! I wish all plugins had such cool technical support as you!

    Thread Starter Triptikon

    (@triptikon)

    How to set adverts taxonomy without plugins? I want it to form like this template: https://example.com/advert/%post_id%. For example, https://nachmed.top/vakansii/1024

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    you will need a plugin that provides this kind of functionality i am afraid.

    Thread Starter Triptikon

    (@triptikon)

    It’s just that these plugins either fix one thing, break the other, or don’t cope with the task at all.

    Plugin Author Greg Winiarski

    (@gwin)

    I understand, but doing this is just to much programming work to have it included in the support, sorry.

    Thread Starter Triptikon

    (@triptikon)

    Could you tell me how to implement the selection of the language version of the site in the form of adding an advert?

    Plugin Author Greg Winiarski

    (@gwin)

    If you have the website in two languages then for each language version you should have a page with the Classifieds Publish block.

    In the wp-admin / Classifieds / Custom Fields panel, you can copy/clone the Classifieds Publish form scheme, edit the copy and just translate the labels.

    Once you do that assign to each Classifieds Publish block (in the wp-admin / Pages panel) a form scheme using a correct language.

    Thread Starter Triptikon

    (@triptikon)

    Once you do that assign to each Classifieds Publish block (in the wp-admin / Pages panel) a form scheme using a correct language.

    How to do that?

    Plugin Author Greg Winiarski

    (@gwin)

    If in the wp-admin / Classifieds / Custom Fields panel you have two forms for the publish form (for example main_english and main_polish), then you can go to the wp-admin / Pages panel edit (or create) an English page with the Classifieds Publish block, click on the block above visualization some icons will appear click the “Reset post type and form scheme” icon, then select Classifieds post type and the main_english form scheme. Similarly for the main_polish form scheme.

    Thread Starter Triptikon

    (@triptikon)

    Well, I’ve cloned a Classifieds Publish form scheme, edit the copy. But that’s it. I have a page to assign this new Publish form scheme, but I still can’t understand how to do it. When I insert a Classifieds Publish block, I can’t see a new Publish form scheme in the list. There’s an old one (default) only. And I can’t find the “Reset post type and form scheme” icon anywhere. Can you illustrate these steps somehow maybe?

    Plugin Author Greg Winiarski

    (@gwin)

    See https://www.youtube.com/watch?v=lD1H3PZ2WFA in 00:15 there is “Search Form Scheme” field (it’s a typo should be “Publish Form Scheme”), in this dropdown you should be able to select the Publish/Create form scheme created in the wp-admin / Classifieds / Options / Custom Fields panel.

    If you do not see the form there please make sure you are using latest WPAdverts and WPAdverts CF versions.

    If the form will still not show then it might be some bug, it would be best if you could share a link to the page where you are having this problem.

Viewing 15 replies - 31 through 45 (of 83 total)
  • The topic ‘How to organize prices?’ is closed to new replies.