11/20/2018 at 12:02 pm
#477457
Participant
Steven,
You can have the full source code once I’m finished. It’s not published yet. I’m creating it for a non-profit i work with. Feel free to do whatever you want with it ^_^
I am having difficulties resolving a category name to an id.. I’m still quite new to WordPress. I am using the following code:
$category_id = get_cat_ID($category);
txtlog("category id for: ".$category." : ".$category_id);
if($category_id > 0)
Connections_Directory()->term->setTermRelationships( $entry->getId(), array($category_id), 'category' );
log:
2018-11-20 04:56:08pm : category id for: Law, Finance & Insurance : 0
is there a different way I’m supposed to resolve connection category names/slugs to ids?
Thanks again for the help
