How to get group id from custom url
I have some more custom url with og group id like
- www.example.com/students/6593
- www.example.com/results/6953
-
www.example.com/book-listing/5367/6953
here 6953 is a group id.
these are the sample link. my questions is how to get the group id from url? And i can’t use arg(). because i have more no of url and group id position also varied.
There is any robust solutions for this.
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.