dpr26232 2013-12-25 07:00
浏览 22

如何从the_excerpt()中删除发布日期和作者姓名

In my website there is a social button for sharing post. It is working fine but I dont want post date and auther name in sharing content of facebook.. see image enter image description here

as you can see in image marked by red line.

for sharing I am using it..

<!-- for Facebook -->          
                <meta property="og:title" content="<?php the_title(); ?>" />
                <meta property="og:type" content="article" />
                <meta property="og:image" content="<?php echo($thumb_url); ?>" />

                <meta property="og:description" content="<?php the_excerpt(); ?>" />

for content I am using the_excerpt() but I dont want include date and auther name in content.

What can I do... Thanks in advance...

  • 写回答

1条回答 默认 最新

  • dongtiannan0367 2013-12-25 08:44
    关注

    there are two ways you can do this thing possible

    1. you can use a quick-fix to hide it with css, added to the end of style.css:

      .grid .post .post-meta { display: none; }

    2. Delete the post-meta div from the thumbnail.

    Thanks

    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改