WordPress.org

Ready to get started?Download WordPress

Forums

Inserting category name into database (1 post)

  1. secretja
    Member
    Posted 1 year ago #

    Hi,

    I have problem with inserting category names into database.
    All work fine for tags and post meta but for category not.
    Example of working code:

    'tags_input' => (''.$tag.', '.$tag1.''),
    add_post_meta($post_id, 'img', $img, true);

    'post_category' didn't work in my case...

    Thank you in advanced.

Topic Closed

This topic has been closed to new replies.

About this Topic