• Resolved Jangho Lee

    (@jangho-lee)


    I want get all comments with pods.

    I try this.

    $comments = pods(‘comment’);
    $params = array( ‘where’ => ‘t.user_id = ‘.get_current_user_id() );
    $comments->find($params);

    or

    $params = array( ‘where’ => ‘t.user_id = ‘.get_current_user_id() );
    $comments = pods(‘comment’, $params);

    But not working.

    Help me!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Did you Extend ‘Comments’ first? Under Pods Admin, instead of Add New, choose Extend Existing.

    You can’t use Pods functions on anything that isn’t created or extended with Pods.

Viewing 1 replies (of 1 total)

The topic ‘pods(‘comment’) not working’ is closed to new replies.