-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-resources.php
43 lines (32 loc) · 1002 Bytes
/
page-resources.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
get_header(); ?>
<script>
//var useWheelNav = true
</script>
<main id="main" role="main">
<?php
/*
function list_slugs(){
global $wpdb;
$sql = "select ID, post_title, post_name from wp_posts where post_type = 'profile' and post_status = 'publish'";
$q = $wpdb->get_results($sql);
$titles_sql = "select * from wp_posts";
$titles = $wpdb->get_results($titles_sql);
print "<ul>";
foreach ($q as $key => $value) {
extract((array) $value);
print "<li><a href='?slut_id=$ID'>$ID | $post_title | $post_name ";
print $new_slug = wp_unique_term_slug(sanitize_title($post_title),$titles);
// $wpdb->query("update wp_posts set post_name = '$new_slug' where ID = $ID");
print "</a><li>";
}
print "</ul>";
// return $child_list;
}
list_slugs();
*/
?>
</main>
<?php
get_footer();
?>