Support » Plugin: WPAdverts - Classifieds Plugin » Limit Category Selection

  • Resolved Wilfredo Perozo

    (@wiljope007)


    Something else Greg!

    The Limit Category Selection code snippet works fine, but it appears
    Seeing the option immediately in the first category. What can I do to see the category Select Option …?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    you can use my 3rd party addon for WPAdverts, the AddonSuite for WPAdverts. Within the admin dashboard you can choose the category limitation and then the selection is basically on ” – Choose Category – ”

    Best regards

    Thread Starter Wilfredo Perozo

    (@wiljope007)

    On 2 occasions I have installed and then uninstalled because I throw the following technical problems:

    1.- Error details
    ==================
    An error of type E_ERROR occurred on line 187 of the file /home/kmerucom/public_html/wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-functions.php. Error Message: Call to undefined function shortcode_adverts_add ()

    2.- Error details
    ==================
    An error of type E_ERROR occurred on line 187 of the file /home2/kmerucom/public_html/wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-functions.php. Error Message: Call to undefined function shortcode_adverts_add ()

    Could something be done about it to fix those errors and install it confidently?

    Hi,

    where do you get this error? on my site, I can not reproduce this issue.

    Could you check the functionality of Gregs codesnippet within your functions.php?

    https://github.com/simpliko/wpadverts-snippets/blob/master/limit-user-active-listings/limit-user-active-listings.php

    Best regards

    Thread Starter Wilfredo Perozo

    (@wiljope007)

    I am sorry, I do not understand! Install your add-on again, likewise the Greg add-on that you indicate. What should I do so that AddonSuite for WPAdvert does not continue to produce the following error:

    Error details
    ==================
    An error of type E_ERROR occurred on line 187 of the file
    / home2 / kmerucom / public_html / wp-content / plugins / addonsuite-fo r-wpadverts / includes / plugin-fu nctions.php.
    Error message: Call to undefined function shortcode_adverts_add ()

    Please help me, your complement seems very good, but I have that problem …

    Plugin Author Greg Winiarski

    (@gwin)

    The function adosui_limit_user_active_listings_init() should check if the [adverts_add] shortcode is registered and only then overwrite the default [adverts_add] for example it can look like this

    
    function adosui_limit_user_active_listings_init() {
      if( shortcode_exists( "adverts_add" ) {
        remove_shortcode( "adverts_add" );
        add_shortcode( "adverts_add", "adosui_limit_user_active_listings_shortcode" );
      }
    }
    

    This is an update for addonsuite-for-wpadverts/includes/plugin-functions.php file on lines about 146 to 150.

    @gwin
    Thanks for supporting with this, you are right.

    I’have updated the AddonSuite.
    @wiljope007 if you like, you can check this again after you have updated the addonsuite.

    Thanks and best regards.
    Pare

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Limit Category Selection’ is closed to new replies.