ZendFrameworkでjoinするには?
<?php $icons = $this->iconRelayDB->getAll( $this->iconRelayDB->select(array('icon_id')) ->from(array('ir' => $this->iconRelayDB->getName()), '*') ->joinleft(array('i' => $this->iconDB->getName()), 'i.id = ir.icon_id', array('*')) ->setIntegrityCheck(false) ->where($column_name . ' = ?', $id));
phpstormでxdebugを利用するには?
macportsでselfupdateしたらライブラリのバージョンアップされて設定消えたようです。
/opt/local/var/db/php53/xdebug.ini /opt/local/var/db/php54/xdebug.ini xdebug.remote_enable=1 xdebug.remote_port="9000" xdebug.idekey = "PHPSTORM"
WP CSV プラグインでインポートされない
ソース読んだ。ID不一致はエラー。空白で新規登録。既存IDだと上書き更新。 public_html/wp-content/plugins/wp-csv/CPK_WPCSV_Engine.php +41
<?php $this->log->add_message( "The post id ('{$p['ID']}') could not be found, so it's impossible to modify this post. If you're trying to create a new post, then empty the ID field. If you're trying to delete, then it seems to have already been deleted.", 'Error' );
カスタム投稿タイプのアーカイブテンプレートを設定したのに使われない
パーマリンクの設定をhas archive trueに http://morilog.com/wordpress/post_type/post_type_permalink/
ポストタイプを指定してデータ取得
<?php $rows = WP_Query(array('post_type' => ‘abc')); if ($rows->have_posts()) : while ( $rows->have_posts() ) : $row = $rows->next_post(); echo get_the_title($row); endwhile; endiif;
https://codex.wordpress.org/Class_Reference/WP_Query https://developer.wordpress.org/reference/classes/wp_query/ https://developer.wordpress.org/reference/classes/wp_post/