Timeline for Using get_terms for custom taxonomy in functions.php
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2012 at 13:26 | comment | added | Madalin |
It seems that all hooks are making the function retrieve what I need to. add_action('init', 'retrieve_my_terms', 9999); is working as well. I'm guessing that what I needed to do was to just use add_action . Thank you guys for all your answers!
|
|
Nov 21, 2012 at 12:45 | comment | added | Stephen Harris |
In that context admin_init might be best. You should probably update your question with that context, generally the accepted answer wouldn't be much help.
|
|
Nov 21, 2012 at 12:31 | comment | added | Madalin |
I want to get the categories of a custom post type and add them inside a meta box which will be shown only if a page is using a certain template. For example, I create a page called Portfolio, assign to it the "Portfolio" template. A metabox with categories of the portfolio custom post type will be shown. Heres the function: http://pastebin.com/yEe3Jwxw ; I m using Ohad Raz`s meta box class to generate the fields:en.bainternet.info/2012/how-i-add-a-wordpress-metabox
|
|
Nov 21, 2012 at 12:20 | history | answered | Stephen Harris | CC BY-SA 3.0 |