Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d78e4af7
authored
2023-11-21 14:38:37 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
ccd8868e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
wp-content/themes/msf-child/inc/rest.php
wp-content/themes/msf-child/inc/rest.php
View file @
d78e4af
...
...
@@ -61,7 +61,7 @@ function pull_posts_for_post_list( $data ) {
$img
=
get_post_meta
(
$post
->
ID
,
'photo_from_source'
,
true
);
}
$new_posts
[]
=
[
'date'
=>
wp_date
(
' F j, Y'
,
get_post_timestamp
(
$post
->
ID
)),
$new_posts
[]
=
[
'date'
=>
date_i18n
(
' F j, Y'
,
get_post_timestamp
(
$post
->
ID
)),
'article_author'
=>
$article_author
,
'author_title'
=>
$author_title
,
'author_company'
=>
$author_company
,
'href'
=>
get_permalink
(
$post
),
'title'
=>
$post
->
post_title
,
'text'
=>
$excerpt
,
'img_src'
=>
$img
];
...
...
@@ -116,7 +116,7 @@ function pull_posts_for_post_list( $data ) {
if
(
!
$img
)
{
$img
=
get_post_meta
(
$post
->
ID
,
'photo_from_source'
,
true
);
}
$posts
[]
=
[
'date'
=>
wp_date
(
' F j, Y'
,
get_post_timestamp
(
$post
->
ID
)),
$posts
[]
=
[
'date'
=>
date_i18n
(
' F j, Y'
,
get_post_timestamp
(
$post
->
ID
)),
'article_author'
=>
$article_author
,
'author_title'
=>
$author_title
,
'author_company'
=>
$author_company
,
'href'
=>
get_permalink
(
$post
),
'title'
=>
$post
->
post_title
,
'text'
=>
$excerpt
,
'img_src'
=>
$img
];
...
...
Please
register
or
sign in
to post a comment