Forums
Forums / Plugin: Pods - Custom Content Types and Fields / pods(‘comment’) not working
(@jangho-lee)
7 years, 1 month ago
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!
(@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.
The topic ‘pods(‘comment’) not working’ is closed to new replies.
(@jangho-lee)
7 years, 1 month ago
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!