));
// Store into wp_posts table
- $result = $this->wpdb->insert('wp_posts',
+ $result = $this->wpdb->insert($this->wpdb->posts,
array(
'post_date' => $date,
'post_date_gmt' => $gmtDate,
$res = $this->wpdb->get_row(
"
DELETE
- FROM wp_posts
+ FROM ".$this->wpdb->posts."
WHERE post_type = 'glm_proto'
AND id = $id
", ARRAY_A);
DATE_FORMAT(post_date, '%Y-%m-%d') p_date,
post_title,
post_content
- FROM wp_posts
+ FROM ".$this->wpdb->posts."
WHERE post_type = 'glm_proto'
AND id = $id
", ARRAY_A);
DATE_FORMAT(post_date, '%Y-%m-%d') p_date,
post_title,
post_content
- FROM wp_posts
+ FROM ".$this->wpdb->posts."
WHERE post_type = 'glm_proto'
AND id = $id
", ARRAY_A);
));
// Store into wp_posts table
- $result = $this->wpdb->update(
- 'wp_posts',
+ $result = $this->wpdb->update($this->wpdb->posts,
array(
'post_date' => $date,
'post_date_gmt' => $gmtDate,
'modelRedirect' => false,
'view' => $view,
'data' => array(
- 'content' => $content
+ 'content' => $content
)
);
}
DATE_FORMAT(post_date, '%Y-%m-%d') p_date,
post_title,
post_content
- FROM wp_posts
+ FROM ".$this->wpdb->posts."
WHERE post_type = 'glm_proto'
ORDER BY post_date, post_title
", ARRAY_A);