You can use window.location.hash to get that part of the URL. Check this page for more information.

reedbird8
—
2013-08-13T12:53:14Z —
#3

Thanks! Appreciate it!

Now, technically wrong forum here, but how could I get that part of the url with php?

fretburner
—
2013-08-13T13:09:23Z —
#4

reedbird8 said:

Now, technically wrong forum here, but how could I get that part of the url with php?

Unfortunately you can't - that part of the url (the fragment) isn't passed through to the server, it's only available to the browser. If you need that value, you'd have to get it via JS and pass it to your script.

Edit: If you have a URL as a string (eg. that's been passed to your script as input) you can extract the various parts (including the fragment) using PHP's parse_url function.

reedbird8
—
2013-08-13T13:27:06Z —
#5

Ok.

I think using it as javascript is going to work, but its not quite working properly. I'm looking to pull that information and use it with isotope to filter different items on load based on the hash.

Here is what I have, and its not quite working: (the variable breedername is eventually passed to initialize isotope)