diff --git a/admin/class-custom-permalinks-posttypes.php b/admin/class-custom-permalinks-posttypes.php index 1138fa3..8640380 100644 --- a/admin/class-custom-permalinks-posttypes.php +++ b/admin/class-custom-permalinks-posttypes.php @@ -64,6 +64,7 @@ private function post_permalinks() $post_html = ''; $request_uri = ''; $search_permalink = ''; + $site_url = site_url(); if ( isset( $_SERVER['REQUEST_URI'] ) ) { $request_uri = $_SERVER['REQUEST_URI']; @@ -136,7 +137,7 @@ private function post_permalinks() $count_query = "SELECT COUNT(p.ID) AS total_permalinks FROM $wpdb->posts AS p LEFT JOIN $wpdb->postmeta AS pm ON (p.ID = pm.post_id) WHERE pm.meta_key = 'custom_permalink' AND pm.meta_value != '' " . $filter_permalink . ""; $count_posts = $wpdb->get_row( $count_query ); - $post_html .= '
' . - '