diff --git a/inc/frame/classes/metabox.class.php b/inc/frame/classes/metabox.class.php
index 18e5c3e..281f242 100644
--- a/inc/frame/classes/metabox.class.php
+++ b/inc/frame/classes/metabox.class.php
@@ -126,7 +126,7 @@ public function render_meta_box_content( $post, $callback ) {
$default = ( isset( $field['default'] ) ) ? $field['default'] : '';
$elem_id = ( isset( $field['id'] ) ) ? $field['id'] : '';
if($callback['args']['data_type'] !== 'serialize' ) {//iotheme.cn
- $elem_value = get_term_meta($post->ID, $elem_id,true);
+ $elem_value = get_post_meta($post->ID, $elem_id,true);
}else{
$elem_value = ( is_array( $meta_value ) && isset( $meta_value[$elem_id] ) ) ? $meta_value[$elem_id] : $default;
}//iotheme.cn
diff --git a/inc/frame/functions/fallback.php b/inc/frame/functions/fallback.php
index 8e4fff6..aa441e1 100644
--- a/inc/frame/functions/fallback.php
+++ b/inc/frame/functions/fallback.php
@@ -1,4 +1,13 @@
postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';
@@ -538,8 +538,8 @@ function cf_search_join( $join ) {
*/
add_filter('posts_where', 'cf_search_where');
function cf_search_where( $where ) {
- if(is_admin())
- return $where;
+ //if(is_admin())
+ // return $where;
global $pagenow, $wpdb;
if ( is_search() ) {
$where = preg_replace("/\(\s*".$wpdb->posts.".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/",
@@ -553,8 +553,8 @@ function cf_search_where( $where ) {
*/
add_filter ('posts_distinct', 'cf_search_distinct');
function cf_search_distinct($where) {
- if(is_admin())
- return $where;
+ //if(is_admin())
+ // return $where;
global $wpdb;
if ( is_search() ) {
return "DISTINCT";
diff --git a/inc/post-type.php b/inc/post-type.php
index e20b129..1365dd9 100644
--- a/inc/post-type.php
+++ b/inc/post-type.php
@@ -6,7 +6,7 @@
* @Author URI: https://www.iowen.cn/
* @Date: 2020-02-22 21:26:05
* @LastEditors: iowen
- * @LastEditTime: 2021-08-22 21:47:11
+ * @LastEditTime: 2021-12-20 23:53:13
* @FilePath: \WebStack\inc\post-type.php
* @Description:
*/
@@ -218,12 +218,17 @@ function io_work_convert_restrict($query) {
add_filter('manage_edit-sites_columns', 'io_ordinal_manage_posts_columns');
add_action('manage_posts_custom_column','io_ordinal_manage_posts_custom_column',10,2);
function io_ordinal_manage_posts_columns($columns){
+ $columns['link'] = '链接';
$columns['ordinal'] = '排序';
$columns['visible'] = '可见性';
return $columns;
}
function io_ordinal_manage_posts_custom_column($column_name,$id){
switch( $column_name ) :
+ case 'link': {
+ echo get_post_meta($id, '_sites_link', true);
+ break;
+ }
case 'ordinal': {
echo get_post_meta($id, '_sites_order', true);
break;
diff --git a/style.css b/style.css
index 2038008..91b3fec 100644
--- a/style.css
+++ b/style.css
@@ -2,7 +2,7 @@
Theme Name:WebStack
Theme URI:https://www.iotheme.cn
Description:wordpress 导航主题!官方网站:一为主题,升级pro版,体验更多功能
-Version:1.1522
+Version:1.1620
Requires at least: 5.4
Tested up to: 5.8
Requires PHP: 5.6