publish - How to add published date in product

Closed. This question needs details or clarity. It is not currently accepting answers.Want to improve this question? Add

Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 5 years ago.

Improve this question

I have on my site some products. My plan is to show some deals. But I want to show also the published date of the deal, the date that i have published the deal. Like a blogpost shows the published date.

What code can i use and where can i add it?

Hope you can help me. The site is www.vakantie.guru, under accomodation there are some products where i refer to.

I have tried to find in the other files which cope is used for the blogpost date, thought that same code could be used. But I can't find it in the files

Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 5 years ago.

Improve this question

I have on my site some products. My plan is to show some deals. But I want to show also the published date of the deal, the date that i have published the deal. Like a blogpost shows the published date.

What code can i use and where can i add it?

Hope you can help me. The site is www.vakantie.guru, under accomodation there are some products where i refer to.

I have tried to find in the other files which cope is used for the blogpost date, thought that same code could be used. But I can't find it in the files

Share Improve this question edited Aug 13, 2019 at 5:29 Anushka27 asked Aug 12, 2019 at 18:54 Anushka27Anushka27 33 bronze badges 2
  • What have you tried? What exact problem are you having? Please edit your question to include any relevant code. – Pat J Commented Aug 12, 2019 at 21:11
  • I have tried to find in the other files which cope is used for the blogpost date, thought that same code could be used. But I can't find it in the files – Anushka27 Commented Aug 13, 2019 at 5:29
Add a comment  | 

1 Answer 1

Reset to default 0
$post_id = 12;
echo get_the_date( 'Y-m-d',$post_id);

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745247472a4618477.html

相关推荐

  • publish - How to add published date in product

    Closed. This question needs details or clarity. It is not currently accepting answers.Want to improve this question? Add

    11小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信