Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Custom field slug url
Tagged: custom fields, custom url
- This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago by Diana.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
April 29, 2018 at 3:35 pm #154654derrickSpectator
good evening. please i want to change the members directory slug from what i set (example ”/members/) to a conditional slug based on a custom field.
detailed scenario: when a user logs in, and tries to access his/her profile or group? his/ her base slug will be based on his/her company name filled in the registration.(example: mydomain.com/vibethemes/Derrick) assuming i filled in vibethemes as my company name.
hpw do i achieve that? tried to read on some tweaks but my php knowledge is to limted and i want to prevent breaking the site by my tweaks
Thank you
www.sronulms.comApril 29, 2018 at 3:36 pm #154655derrickSpectator<p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; background-color: #fafafa;">good evening. please i want to change the members directory slug from what i set (example ”/members/) to a conditional slug based on a custom field.</p> <p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; background-color: #fafafa;">detailed scenario: when a user logs in, and tries to access his/her profile or group? his/ her base slug will be based on his/her company name filled in the registration.(example: mydomain.com/vibethemes/Derrick) assuming i filled in vibethemes as my company name.</p> <p style="box-sizing: border-box; margin: 0px 0px 16px; padding: 0px; color: #666666; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; background-color: #fafafa;">hpw do i achieve that? tried to read on some tweaks but my php knowledge is to limted and i want to prevent breaking the site by my tweaks</p>April 30, 2018 at 10:14 am #154730DianaParticipant@derrick, This functionality is of BuddyPress. The thing you want to change the BuddyPress Parent Slug Dynamically which is not handled by us. We only used the BuddyPress Functionality in our theme. I can tell you how to change the slug but for changing it according to the custom field need BuddyPress Plugin Modification which falls under customizationApril 30, 2018 at 1:44 pm #154773derrickSpectator<p style="text-align: left;">so what is your advice in order to do that which i need. just tell me what to do.</p> tell me more about this category "customisation" and what i need to do.May 1, 2018 at 6:16 am #154867DianaParticipant@derrick, I am sorry but this is not possible to fetch dynamically the field value and then change the slug accordingly -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- The topic ‘Custom field slug url’ is closed to new replies.