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
6e554108
authored
2023-11-10 13:18:19 -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
a66a7dfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
wp-content/themes/msf-child/inc/search-extras.php
wp-content/themes/msf-child/style.css
wp-content/themes/msf-child/inc/search-extras.php
View file @
6e55410
...
...
@@ -135,17 +135,8 @@ function update_tax_counts()
mysqli_query
(
$conn
,
"UPDATE "
.
$table_prefix
.
"term_taxonomy SET count = '
$count
' WHERE term_taxonomy_id = '
$term_taxonomy_id
'"
);
}
$result
=
mysqli_query
(
$conn
,
"SELECT ID FROM "
.
$table_prefix
.
"posts"
);
while
(
$row
=
mysqli_fetch_array
(
$result
))
{
$post_id
=
$row
[
'ID'
];
echo
"post_id: "
.
$post_id
.
" count = "
;
$countresult
=
mysqli_query
(
$conn
,
"SELECT count(*) FROM "
.
$table_prefix
.
"comments WHERE comment_post_ID = '
$post_id
' AND comment_approved = 1"
);
$countarray
=
mysqli_fetch_array
(
$countresult
);
$count
=
$countarray
[
0
];
echo
$count
.
"<br>"
;
mysqli_query
(
"UPDATE "
.
$table_prefix
.
"posts SET comment_count = '
$count
' WHERE ID = '
$post_id
'"
);
}
}
}
...
...
wp-content/themes/msf-child/style.css
View file @
6e55410
...
...
@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.
5
Version: 1.0.
6
*/
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment