<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] ## **wordpress獲取文章鏈接函數:get_permalink()** ### **函數說明** 該函數返回文章或頁面的固定鏈接,該函數作為返回值應用在PHP中而不顯示固定鏈接,可用在主循環(loop)外。 注意,在文章型頁面(文章索引、存檔等)的主循環外使用該標簽時,如果沒有指定ID參數,該標簽將返回循環中最后一篇文章的URL,而不是當前頁面的固定鏈接。 * * * * * ### **函數用法** ~~~ <?php $permalink = get_permalink( $id ); ?> ~~~ * * * * * ### **參數說明** $id (mixed) (可選)文章或者頁面的ID, 或者 post 對象 默認呢:如果使用循環(loop),則為當前文章 ID $leavename (bool) (可選) 文章鏈接是否以文章名稱形式顯示,例如: https://www.codeplus.top/%postname% 取代 https://www.codeplus.top/my-post Default: false * * * * * ### **返回值** Return Values (string|bool) 文章或者頁面URL鏈接,如果失敗則返回FALSE。 * * * * * ### **實例** 根據文章ID獲取文章鏈接 ~~~ <a href="<?php echo get_permalink( 268 ); ?>">My link to a post or page</a> ~~~ * * * * * ### **默認使用** 在循環(loop)中的使用: ~~~ Permalink for this post: <?php echo get_permalink(); ?> ~~~ 在文章標題中添加文章鏈接: ~~~ <ul> <li>MyBlog info: <ul> <li><a href="<?php echo get_permalink(1); ?>">About MyBlog</a></li> <li><a href="<?php echo get_permalink(10); ?>">About the owner</a></li> </ul> </li> </ul> ~~~ * * * * * ### **源文件** ~~~ get_permalink() 位于 wp-includes/link-template.php ~~~ * * * * *
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看