Title: Plugin &amp; URL Routing / hooks
Last modified: August 20, 2016

---

# Plugin & URL Routing / hooks

 *  [alexjamesbrown](https://wordpress.org/support/users/alexjamesbrown/)
 * (@alexjamesbrown)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-url-routing-hooks/)
 * I’m planning to develop a plug-in that displays facebook albums within wordpress.
 * There are plenty of plug-ins that display the content of an album (by passing
   in the album ID)
    However, I can’t find one that I can essential pass in the 
   pageID (or username), and have it list out the albums. For example: [http://graph.facebook.com/facebook/albums](http://graph.facebook.com/facebook/albums)
   lists the albums for the page “facebook”
 * What I want to do, is have a shortcode that I could put on a page (Gallery) for
   example.
    Then, the available galleries would be displayed in a table or some
   other markup.
 * Here’s the tricky part:
    I want a user to be able to click on a gallery, and 
   be shown the contents (images) within that gallery, going to a page such as /
   gallery/fathers-day-stories This would then show the contents of [http://graph.facebook.com/10150294959176729/photos](http://graph.facebook.com/10150294959176729/photos)(
   i can work out how to get the ID from the url-slug friendly name later)
 * Is there a “hook” i can have in a plug-in to allow anything after /gallery to
   be handled by my plugin?

Viewing 1 replies (of 1 total)

 *  Thread Starter [alexjamesbrown](https://wordpress.org/support/users/alexjamesbrown/)
 * (@alexjamesbrown)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-url-routing-hooks/#post-2583206)
 * anyone?

Viewing 1 replies (of 1 total)

The topic ‘Plugin & URL Routing / hooks’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [alexjamesbrown](https://wordpress.org/support/users/alexjamesbrown/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-url-routing-hooks/#post-2583206)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
