E
E
Edward2015-10-02 00:05:29
CMS
Edward, 2015-10-02 00:05:29

How to display the publication date in a container in English in wordpress?

How to display the publication date in the container in English, while the entire backend is in Russian.
2c36462b7407432a9afa73390a2e9b58.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Noirman, 2015-11-07
@Noirman

function month($m) {
  $eng = array('1' => 'Jan', '2' => 'Feb', '3' => 'Mar', ... , '11' => 'Nov' );
  return $eng[$m];
}
echo month(get_the_date('m')). ' '.get_the_date('d, Y');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question