get_permalink()则比较灵活,可以用在loop循环内,但没有echo打印出来显示在前端;也可以放在循环外,但是如果是在循环外必须加文章id 1、在循环内,the_permalink()相当于打印出来的get_permalink() 1 <?phpechoget_permalink(); ?> 2、在循环外,get_permalink()必须加post id,调用方法如下 1 <?phpechoget_pe...
Click the Get embed code button next to the component the embed code is required for . The Published URL pop-up will appear. The URL for the published component will be displayed under the Permalink tab . This link can be used to access the form directly.Related...
How to obtain current page permalink url from a function on call on a page template and not from inside the Loop?/ Published in: PHP I got the answer to this question on WordPress Stack Exchange website: http://wordpress.stackexchange.com/questions/6931/is-...
get_permalink()则比较灵活,可以用在loop循环内,但没有echo打印出来显示在前端;也可以放在循环外,但是如果是在循环外必须加文章id 1、在循环内,the_permalink()相当于打印出来的get_permalink() 1 <?phpechoget_permalink(); ?> 2、在循环外,get_permalink()必须加post id,调用方法如下 1 <?phpechoget_pe...
1、在循环内,the_permalink()相当于打印出来的get_permalink() <?php echo get_permalink(); ?> 1. 2、在循环外,get_permalink()必须加post id,调用方法如下 <?php echo get_permalink( 5 ); ?> 1.
1、在循环内,the_permalink()相当于打印出来的get_permalink() 代码语言:javascript 代码运行次数:0 运行 AI代码解释 <?php echo get_permalink(); ?> 2、在循环外,get_permalink()必须加post id,调用方法如下 代码语言:javascript 代码运行次数:0 运行 AI代码解释 <?php echo get_permalink( 5 ); ?> 本...
Get permalink of the published page Note: The last part of the URL i.e the set of alphabets in mixed-case following the URL portion is called theprivate link. To get the permalink of the page Click thePublishoption under theUsers and Controlsection of theSettingspage. ...