---
title: "Tùy biến post info trong Genesis child theme"
author: "Trung Hiếu"
date: "2014-03-09"
lastmod: "2022-06-19"
url: "https://wpcanban.com/wordpress/thu-thuat-wordpress/tuy-bien-post-info-trong-genesis-child-theme.html"
---

# Tùy biến post info trong Genesis child theme

Tùy biến post info trong Genesis child theme.

![tuy-bien-post-info-va-post-meta-trong-genesis-child-theme](https://wpcanban.com/wp-content/uploads/2014/03/tuy-bien-post-info-va-post-meta-trong-genesis-child-theme.png)

Post info chứa thông tin về tác giả, thời gian đăng tải, thời gian cập nhật, số lượng bình luận… của một bài viết. Trong khi đó, post meta cung cấp thông tin về chuyên mục và tags (thẻ, từ khóa) của bài viết đó. Trong *Genesis Framework* cũng như [*Genesis*](https://wpcanban.com/tag/thu-thuat-genesis/) *child theme*, cả post info và post meta mặc định đều được hiển thị bằng tiếng Anh. Nếu bạn đang muốn Việt hóa hoặc tùy biến chúng theo ý thích của mình thì bài viết này là dành cho bạn.

Tham khảo thêm: [*Gộp chung post info và post meta trong Genesis Framework*](https://wpcanban.com/wordpress/thu-thuat-wordpress/gop-chung-post-info-va-post-meta-trong-genesis-framework.html)

## Hướng dẫn tùy biến post info trong Genesis một cách nhanh chóng

Bạn có muốn Việt hóa phần *post info* và *post meta* trong child theme *Genesis* trông giống như thế này?

– *Post info* trong *Genesis child theme*:

![3-9-2014 5-30-09 PM](https://wpcanban.com/wp-content/uploads/2014/03/demo-post-info-trong-genesis.png)

– *Post meta* trong *Genesis child theme*:

![3-9-2014 5-34-41 PM](https://wpcanban.com/wp-content/uploads/2014/03/demo-post-meta-trong-genesis.png)

Rất đơn giản. Thêm 2 đoạn code này vào file `functions.php` của child theme *Genesis* bạn đang dùng. Tùy biến những dòng chữ tiếng Việt theo ý thích của bạn.

– Code tùy biến *post info*:

```
# Tùy biến post info trong Genesis
add_filter('genesis_post_info', 'be_post_info_filter');
function be_post_info_filter($post_info) {
$post_info = 'Đăng bởi [post_author_posts_link] lúc [post_time]
ngày [post_date] [post_comments zero="0 Bình luận" one="1 Bình luận" more="% Bình luận"] [post_edit]';
return $post_info;
}
```

– Code tùy biến *post meta*:

```
# Tùy biến post meta trong Genesis
add_filter('genesis_post_meta', 'be_post_meta_filter');
function be_post_meta_filter($post_meta) {
$post_meta = '[post_categories sep="/" before="Chuyên mục: "] [post_tags sep="/" before="Từ khóa tìm kiếm: "]';
return $post_meta;
}
```

Sau khi chỉnh sửa, click vào nút “*Save Changes*” để lưu lại các thiết lập. Đơn giản vậy thôi, chúc các bạn thành công!

Ngoài ra, các bạn cũng có thể sử dụng plugin *[Genesis Simple Edits](https://wordpress.org/plugins/genesis-simple-edits/)* để tùy biến post info và post meta theo ý của mình. Plugin này rất nhẹ và hoàn toàn không gây ảnh hưởng đến tốc độ load của blog/ website.

*Nếu bạn thích bài viết này, hãy subscribe blog của tôi để thường xuyên cập nhật những bài viết hay nhất, mới nhất qua email nhé. Cảm ơn rất nhiều.* :)
