BuddyDev

Search

[Resolved] tried to limit categories in buddyblog now it will not render

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18642

    so i tried the advice on this thread:
    https://buddydev.com/support/forums/topic/need-to-limit-categories-users-can-post-to-in-buddyblog/

    now the page will not render when i try to go to the buddyblog tab

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #18643

    Hi Phil,
    Please share the code that you are using(link me to the code on pastebin or github gist).

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18644

    ok i found what was blocking the render, but the code placed in bp-custom.php does nothing at all, i still see all cats on a normal user when trying to create new buddyblog post.

    i tried bp-custom.php and also child themes function.php just to see if bp-custom wasnt being called but it is

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #18645

    Hi Phil,
    Please link me to the code to allow me look into it and assist you.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18646
  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18647

    i want to limit categories and tags

    thats just set up to use War Cries (id91) and a sub cat Guides (id79)as the default if no category is chosen

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18648

    https://snag.gy/W4mi3J.jpg

    that what I see even with the code

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #18649

    Hi Phil,
    You are missing the filters.

    Please add

    
    add_filter( 'buddyblog_post_form_settings', 'buddyblog_show_custom_cats', 100 );
    add_action( 'bsfep_post_saved', 'buddydev_add_default_category_to_post' );
    
    

    to the existing code and make sure that the value for child_of is correct.
    Please try and let me know if it works for you or not?

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18650

    HAH! this is why i suck at coding. thanks again man.

    can you write me something to do the same with tags?
    I want them to have to choose from a list of very specific tags

  • Participant
    Level: Enlightened
    Posts: 66
    phil may on #18651

    ok so my only complaint is this:
    1) does not get user profile image
    2) not inheriting css from theme
    3) Edit Post brings them to WP backend to edit, not the front end.

    heres a pic of what it looks like:

    https://snag.gy/xERTJp.jpg

You must be logged in to reply to this topic.

This topic is: resolved