BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 496
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14101

    Hi Ravi,

    Thanks for your code, I have implemented it with Success and it works.

    The only thing is, as I am a PHP beginner I do not understand how I can find out my other Category ids as 77, 75, …

    Could you please tell me precisely how I can find out the Category ids or is there a way to use the slugs ?

    Many thanks for your help!

    Kind regards,
    Daniel

    • This reply was modified 6 years, 6 months ago by Daniel.
  • Participant
    Level: Master
    Posts: 496
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14094

    Hi Ravi,

    Please disregard my answer #14067 as I have found out how to implement the code and to use it.

    The code you have provided works with Success!

    I only have one more question.

    I would like to hide some categories in the category list to choose.

    The category slug I want to hide is called “blog”.

    Could you please help me and tell me which code I need to add in order that it does not show the Category “blog” ?

    Thank you very much!

    Kind regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496

    Hi Ravi,

    I have tested the code and the tab “New Post” has disappeared with success.

    But the problem now is, that the user cannot EDIT his post anymore after I have inserted your code.

    When the user wants to EDIT his post, then the user gets redirected to the search page and it says:

    “It looks like nothing was found at this location. (And then it shows the Search bar underneath.)

    I only want that the “New Post” Tab disappears and not more. But I still would like that the user can EDIT his post.

    Is there a way to only hide the “New Post” Tab but that the user still can EDIT his post ?

    Thank you for your support.

    Kind regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14067

    Hi Ravi,

    Many thanks for your information.

    I have updated the plugin and I have checked if it worked and indeed, point 1. 2. and 3. are resolved. That’s excellent, thank you!

    Now just one question about the additional code you have provided: do I need to implement the code inside the bp-custom.php file under /wp-content/plugins/bp-custom.php and then just insert the code at the end of the file on a new line ?

    Thank you for clarification.

    Kind regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496

    Hi Ravi,

    Basically, I had no bp-custom.php file, so what I did was I have created an empty bp-custom.php file and I have copied your code you have provided into the empty bp-custom.php file.

    Therefore, the whole file code of my bp-custom.php file is the same as the code you have provided above. Means, there is no other code included other than your code.

    I hope this helps.

    If you want you can send me an email and I will attach the bp-custom.php file and send you back an email.

    Thank you and please let me know if I can provide any further information.

    Kind regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496

    Hi Ravi,

    Thanks for your reply.

    I have created the bp-custom.php file as per the link you have provided and I have copy your code inside the file and added the file under wp-content/plugins.

    Unfortunately, the code you have provided did not work. I still can see the “New Post” Tab.

    Kind regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on in reply to: [Resolved] BUDDYBLOG Issues #14035

    Hi Brajesh,

    Many thanks for your info, much appreshiated!

    Looking forward to it 🙂

    Thank you.

    Best regards,
    Daniel