[resolved] How to get category ID of current page? (3 posts)

  1. patwashburn
    Posted 7 years ago #

    For an author's site, I'm buiding a widget to display a different image (book cover) linked to the relevant Amazon.com page in each category. I've written the Javascript to parse the category IDs and display the correct items, but I'm having trouble finding an easy way to access the category ID for the current page. Can anyone help?

    thanks in advance,

  2. dor
    Posted 7 years ago #

    get category title than get category id by category title

    You can find this in the docs.

    I guess you can obtain category ID by php and pass it to javascript as argument. Sorry, have not tried such things.

  3. patwashburn
    Posted 7 years ago #

    Thanks dor!

Topic Closed

This topic has been closed to new replies.

About this Topic