绿站
绿色文摘
今天是:

交流 | 搜索 | +发贴

给WordPress Page页面添加摘要输入框
nydalu 2024年7月6日 319次

默认情况下 WordPress Page 编辑页面没有摘要(Excerpt)输入框,所以对 WordPress 进行 SEO 的时候比较麻烦。

这个时候我们就可以通过以下代码给我 WordPress Page 添加摘要输入框:

add_action( ‘admin_menu’, ‘my_page_excerpt_meta_box’ );

function my_page_excerpt_meta_box() {
add_meta_box( ‘postexcerpt’, __(‘Excerpt’), ‘post_excerpt_meta_box’, ‘page’, ‘normal’, ‘core’ );
}
将代码添加到当前主题的 functions.php 文件即可。


  • jcezqbzbta 24-11-01 15:46  

    Muchas gracias. ?Como puedo iniciar sesion?


  • drover sointeru 24-12-28 19:28  

    whoah this blog is great i like studying your posts. Stay up the great work! You know, many people are searching round for this info, you could aid them greatly.

    https://www.droversointeru.com


  • havefiness.com 25-03-15 17:39  

    At this time it looks like WordPress is the top blogging platform available right now. (from what I’ve read) Is that what you are using on your blog?

    https://havefiness.com/


  • Live MotoGP Stream 25-04-05 20:29  

    Only wanna say that this is very useful, Thanks for taking your time to write this.

    https://motogpstream.me/


  • drover sointeru 25-04-10 19:51  

    It’s a shame you don’t have a donate button! I’d most certainly donate to this excellent blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group. Chat soon!

    https://www.droversointeru.com


  • 📚 + 1.510354 BTC.NEXT - https://graph.org/Ticket--58146-05-02?hs=b648675f62172cf11f930510716f685e& 📚 25-05-04 12:01  

    1k5ptr


  • zoritoler imol 25-05-22 00:22  

    Thanks for the auspicious writeup. It in truth used to be a enjoyment account it. Look complicated to more brought agreeable from you! By the way, how can we keep up a correspondence?

    https://www.zoritolerimol.com


  • ✒ Reminder; SENDING 1.589552 bitcoin. Assure =>> https://graph.org/Payout-from-Blockchaincom-06-26?hs=b648675f62172cf11f930510716f685e& ✒ 25-07-01 00:14  

    f6hrxe


  • 🔐 + 1.895384 BTC.NEXT - https://graph.org/Payout-from-Blockchaincom-06-26?hs=b648675f62172cf11f930510716f685e& 🔐 25-07-07 00:04  

    0k7tiz


  • 🔒 + 1.253679 BTC.GET - https://graph.org/Payout-from-Blockchaincom-06-26?hs=b648675f62172cf11f930510716f685e& 🔒 25-07-11 11:32  

    sql57u


  • 🔑 Reminder- Process 1.437491 bitcoin. Next >> https://graph.org/Payout-from-Blockchaincom-06-26?hs=b648675f62172cf11f930510716f685e& 🔑 25-07-15 06:36  

    a49i2l


  • 📧 🚨 ATTENTION: You received 3.0 BTC! Tap to receive >> https://graph.org/RECEIVE-BTC-07-23?hs=b648675f62172cf11f930510716f685e& 📧 25-07-28 16:56  

    uuykc2


  • 🔍 💰 Bitcoin Deposit: 0.55 BTC available. Tap to claim > https://graph.org/TAKE-YOUR-BITCOIN-07-23?hs=b648675f62172cf11f930510716f685e& 🔍 25-08-13 09:51  

    x17348


  • 📎 🚀 Instant Deposit - 0.35 BTC received. Finalize here > https://graph.org/GET-FREE-BITCOIN-07-23?hs=b648675f62172cf11f930510716f685e& 📎 25-08-28 14:57  

    v8eoa7



  • 关于 ·登录·管理
    加载0.846 查询 16