Forums

[resolved] Extend the comments of a particular post type without plugin (3 posts)

  1. esafwan
    Member
    Posted 1 year ago #

    How can i add custom fields to posts? I'm making a restaurant review site.. where user reviews and not comment. So there has to be fields for hygiene, service quality, price range etc...

    I know how to add custom fields to post, to add custom taxonomy and all but didnt find anything on doing this... I would prefer a way independent from plugins. Where do i get started? Any links? or tips...

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    http://codex.wordpress.org/Function_Reference/post_meta_Function_Examples
    http://codex.wordpress.org/Function_Reference/update_post_meta

    stuff like that, deals with custom fields (for posts), which you said you already know about.... so good

    I believe you can do the same things with comments

    update_comment_meta behaves the same as update_post_meta I believe

    So knowing that, you should be able to work with comments custom fields pretty much as post custom fields

  3. esafwan
    Member
    Posted 1 year ago #

    Thanks... Found it online by searching comment_meta. here

Topic Closed

This topic has been closed to new replies.

About this Topic