Get Tag Number or Category Number
-
I’m using DART (DoubleClick) for ad serving on a site. DART will allow you to target ads to customizable variables on your site.
I’d like to target ads based on tag ID# or Category ID#. I just cant figure out how to pull that number in dynamically depending on the page/post that is being served.
This is a sample of the DART code.
<noscript><a href="https://ad.doubleclick.net/jump/xxx.xxx/Homepage;catid=NUMBER HERE;tile=1;sz=728x90;ord=123456789?" target="_blank" ><img src="https://ad.doubleclick.net/ad/xxx.xxx/Homepage;catid=NUMBER HERE;tile=1;sz=728x90;ord=123456789?" border="0" alt="" /></a></noscript>
The catid=NUMBER HERE is where I would like WordPress to automatically insert the category ID number that was assigned to the post. I could also use tag ID numbers I suppose. I’d imagine it is just as easy.
Any ideas on how to pull that variable in?
- The topic ‘Get Tag Number or Category Number’ is closed to new replies.