自分用にメモ。
1 | the_permalink() |
はそのままや、頭に”get_”を付けても変数に入ってくれないので、
変数で使うには下記の様にすれば格納できるようになります。
1 | $permalink = get_permalink($post->ID); |
参考
http://wordpress.org/support/topic/get_the_permalink-not-working
自分用にメモ。
1 | the_permalink() |
はそのままや、頭に”get_”を付けても変数に入ってくれないので、
変数で使うには下記の様にすれば格納できるようになります。
1 | $permalink = get_permalink($post->ID); |
参考
http://wordpress.org/support/topic/get_the_permalink-not-working