Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
450 views
in Technique[技术] by (71.8m points)

wordpress - 在Divi Extra主题中编辑发布元数据(Edit Post Metadata in Divi Extra theme)

I am using Divi Extra theme for my website, using post view counter [post-views] plugin to display the total number of views for posts.

(我正在为我的网站使用Divi Extra主题,并使用后视图计数器[post-views]插件显示帖子的视图总数。)

By default, post views are displayed before/after the post content, would like to display the total number of views in the post metadata along with other info as below:

(默认情况下,帖子视图显示在帖子内容之前/之后,想要显示帖子元数据中的视图总数以及其他信息,如下所示:)

post create by |

(发表创建者|)

created date |

(创建日期|)

number of comments |

(评论数|)

ratings |

(评分|)

[post-views].

([后视图]。)

could you please point out the files to be changed to achieve this.

(您能否指出要实现此目的需要更改的文件。)

Thanks!

(谢谢!)

  ask by Lakshman Battini translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have to copy the post templates from the Extra theme folder to a child theme and modify the post meta there.

(您必须将帖子模板从Extra主题文件夹复制到子主题,然后在此处修改帖子元。)

For example, if you want to modify normal posts, you would copy the single.php.

(例如,如果您要修改普通帖子,则可以复制single.php。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...