Hi, I’m pretty new to wordpress and having a hard time changing the slug.
I’m probably doing something incorrect so I thought I’d ask for some help?Here is the code I have:
<?php/ define( ‘BP_BUDDYBLOG_SLUG’, ‘blog’ );?>
I put it in my text editor and saved the file. Then I uploaded the file in wp-content/plugins
It didn’t work.What is my error? Can anyone walk me through it? Usually I go to youtube for help or search forums to learn but I can’t find much more detail on it. Only the basic steps which I’m having trouble with for some reason.
Right now the urls all look like this still “siteunderconstruction.com/user/buddyblog/edit/”
Any help I can get would be very appreciated! Thanks for taking the time to read this!
Karen
Hi Karen,
Welcome to BuddyDev.Is the file named bp-custom.php ?
Which version fo BuddyBlog are you using? Please let me know and I will assist.
Regards
BrajeshHi Karen,
I am not sure what you are doing but putting this line in bp-custom.php<?php define( 'BP_BUDDYBLOG_SLUG', 'blog' );
Is working for me. Just tested again.
Please make sure the file is named “bp-custom.php” and not “bp-custom.php.txt”.
I do not use Windows but it seems if you use the file name in quotes, eg
"bp-custom.php"
The notepad will not save it as text and should work.
Regardds
BrajeshSuccess!
I’m really not sure what I did differently but comparing the code you gave me to what I found in the forums
I had a slash in there <?php/ define( ‘BP_BUDDYBLOG_SLUG’, ‘blog’ );?>
I copy pasted your code and saved it as you said and it finally worked!
Thanks for your help! I’ve been trying to learn more about wordpress and it’s been so frustrating.
Thanks again!
Hi Karen,
I am glad you resolved it.I am sorry to hear about your experience with WordPress so far. I hope it gets better from now on.
All the best 🙂
Regards
Brajesh
The topic ‘ [Resolved] can't change buddyblog slug in my permalinks’ is closed to new replies.