• Resolved chauthong

    (@chauthong)


    Hello,
    Thank you for providing a great plguin. I like it very much. After the trial I have a few questions to ask you for help:

    – How can I set the post status (pending, published …) for members? Currently, members who have not registered (guest) can still post articles on the website.

    -Is there a way to fully display parent category (electronics) on the breadcrum bar? (eg Home / electronics / iphone x 256gb) Sreenshot: https://imgur.com/Z6HqAU1
    ?
    -How to delete a line number of the form on the “adverts_add” page (email, location …)

    _ How to delete the word “category” in the title of the category page. Screenshot: https://imgur.com/J5I6Fxj

    Sorry for my English.
    Thank you very much !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. i am not sure what do you mean?

    2. the BreadCrumbs are most likely generated by your theme, you would need to ask your theme support, if a link can be injected before the custom post type “advert” title.

    3. i understand you want to remove a filed from the [adverts_add] form? If so then you can do it using adverts_form_load filter

    
    add_filter( "adverts_form_load", "customize_adverts_add" );
    function customize_adverts_add( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "adverts_email" ) {
            unset( $form["field"][$key] );
        }
        if( $field["name"] == "adverts_location" ) {
            unset( $form["field"][$key] );
        }
      }
      return $form;
    }
    

    the code you can add in your theme functions.php file, although note that if you allow annonymous users to post Ads then you might experience some issues without the email field (especially when they will check the “Create Account” checkbox).

    4. you can do that using a plugin like Say What? using it change the phrase “Category: %s” to just “%s”.

    Thread Starter chauthong

    (@chauthong)

    Hello,
    Thanks for your reply!
    At question number 1. I mean

    ? – How to approve user ads. Or you can set the status of user ads to: “pending”. For example, there are people who intentionally add spam or delicately advertise and publish immediately after they press the “submit” button. I have no way to preview these ads and consider whether to publish them?

    – Currently, users are not logged in and do not check the “Create an account for me so I can manage all my ads from one place (password …” can still post ads and publish immediately advertising. I don’t understand how they can edit and delete the post?

    Sorry for my English!
    Thanks you!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. if you want to manually approve the ads from wp-admin panel, then you can use the [adverts_add] shortcode as [adverts_add moderate="1"], please see the docs https://wpadverts.com/documentation/allow-users-to-post-ads-adverts_add/ for more details.

    Note this will affect only Ads posted for free, the paid ads are automatically approved when the payment is accepted, unless you are using WC integration to charge users it allows moderating paid ads as well.

    2. if a user posted an Ad anonymously (without logging in) then he has no way of editing the Ad, only administrator can do it on his behalf.

    The being said, in one of the next releases there will be a feature in WPAdverts which will allow users to edit their anonymously posted Ads.

    Thread Starter chauthong

    (@chauthong)

    Hi, Thanks for your help !

    Thread Starter chauthong

    (@chauthong)

    Hello,

    About the question “4. How to delete the” category “in the title of the category page Screenshot: https://imgur.com/J5I6Fxj”:

    I tried deleting the phrase “Category:” in the file “Funtion.php” (… wp-content plugins wpadverts \ _ includes functions.php) and it disappears from the title and is exactly what I want. Does this make a mistake?

    Thank you very much !

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    this will work fine, but each time you update WPAdverts to the latest version this change will be reverted.

    The best way to make it permanent is to install a plugin like Say What? and using it change phrase “Category: %s” to “%s”.

    Thread Starter chauthong

    (@chauthong)

    Hi,
    Thank you very much !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post status and display’ is closed to new replies.