Tagged: ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Question

    #58397
    @schwarzaufweiss

    Wow! Thanks for this cool plugin.
     
    Please include checkboxes in the option panel (backend) to disable Categories and / or Tags in the frontend. That would be really helpful while providing a clean and simple workflow for my users.

    Answers

    #59206
    @vapvarun

    Hi @schwarzaufweiss
    Thanks for your input.
    We will keep in our suggestion list to make them as optional.

    Regards

    #59281
    @kaypitre

    This option is crucial in my opinion. Regular members should have access to different categories than the admins. Is there a way we can disable this with code? What files must be modified?

    #59317
    @vapvarun

    Hi @kaypitre
    Please let me know which category you need to skip i will provide custom code for it
    Regards

    #59320
    @kaypitre

    Oh wow! Thank you!

    Do you need the actual category names or the IDs. I will provide both.
    These are the categories that I don't want to appear on the front-end to the subscriber. However, as an admin, I want access to them on the back-end.

    Blog, 10
    Featured Member Articles, 95
    Fitness, 100
    Health & Wellness, 102
    Lifestyle, 93
    Mind & Soul, 98
    Motivational, 96
    Recipes, 104
    Self Development, 108
    Travel & Great Outdoors, 110
    Uncategorized, 1
    Yoga, 91

    #59327
    @kaypitre

    oops… not sure if I had to tag you @vapvarun for you to see my post. I've provided a response above. 🙂

    #59328
    @vapvarun

    Hi @kaypitre
    Inside plugin folder

    includes/sap-functions.php line 318
    replace

    
    <?php wp_dropdown_categories( 'hide_empty=0&id=sap-cat' ); ?>
    

    with

    
    <?php wp_dropdown_categories( 'hide_empty=0&id=sap-cat&exclude=array(10,95,100)' ); ?>
    

    where 10, 95, 100 are those category id which you do not want to display for member

    you can add more ids in same pattern with comma separated values

    Let me know if it solve your requirement

    Regards
    Varun Dubey

    #59338
    @kaypitre

    @vapvarun
    OMG… this is brilliant and so simple. Thank you for the great support. Works like a charm!

    #59339
    @vapvarun

    Great 🙂
    Regards

    #59340
    @kaypitre

    @vapvarun Is there a way to put the remaining categories in the drop-down list in alphabetical order?

    #59341
    @vapvarun

    Hi @kaypitre

    You can use like this

    
    <?php wp_dropdown_categories( 'hide_empty=0&id=sap-cat&orderby=name&exclude=array(10,95,100)' ); ?>
    

    Regards

    #59343
    @schwarzaufweiss

    @vapvarun Thanks for that great support you're providing – but please don't forget about my inital feature request to completely disable Categories and / or Tags in the frontend.

    #59344
    @kaypitre

    That worked too. Thanks!

    #59434
    @vapvarun

    I will close this topic, If you have any further queries feel free to create new topic
    Regards
    Varun Dubey

Viewing 14 posts - 1 through 14 (of 14 total)
  • The question ‘Option to disable Categories and / or Tags’ is closed to new replies.