雑記

15 May 2014

[Wordpress]現在のページURLを取得する

the_permalinkだけでは、indexページでうまくいきません。
参考サイト:http://wordpress.org/support/topic/get-the-current-url
<a href="><?php
if(is_home()){
    bloginfo('url');
} else {
    the_permalink();
}
?>"></a>
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Wordpress
Newer Post Older Post Home

Twitter

@YYamashita001

Search This Blog

Popular Posts

  • [CakePHP2]サブディレクトリにCakePHPを配置
  • [PHP]時間を15分刻みに変換する
  • Buffalo無線ルータで 無線LANをブリッジ接続で中継する手順について
  • [CakePHP2] date / datetime / year フィールドで和暦の年を併記する
  • [phpunit][NetBeans] Command "Calculator" is not defined.

Labels

CakePHP2 PHP FreeBSD Netbeans Haskell Apache Blogger Composer Debian MAMP OpenDNS PHPUnit SQL Shell Skype Twitter Wordpress

Blog Archive

  • May 2017 (1)
  • April 2017 (2)
  • July 2015 (1)
  • April 2015 (1)
  • March 2015 (1)
  • February 2015 (2)
  • January 2015 (2)
  • November 2014 (2)
  • October 2014 (1)
  • July 2014 (1)
  • May 2014 (9)
  • April 2014 (1)
  • March 2014 (2)
  • February 2014 (3)
Simple theme. Powered by Blogger.