Ocean WP: not showing custom fields
-
Hello
i’m using Ocean WP with child theme and wordpress 5.4.1.
I created custom post and fields easily. I also created custom template by using shortcodes.
But these fields are not showing…
I don’t know what i’m missing, i also added compatibility theme code in function.php in this way:function add_theme_compatibility( $themes ){
$themes[‘oceanwp-child-theme-master’] = array(
‘single_template’ => get_template_directory() . ‘/oceanwp-single.php’,
‘replace_type’ => ‘preg’,
‘replace’ => array(“#while(.+)endwhile;#s”),
‘after’ => ” echo ‘</main>’; “,
);
return $themes;
}
add_filter( ‘add_theme_compatibility_template’, ‘add_theme_compatibility’ );function add_theme_compatibility_2( $themes ){
$themes[‘oceanwp-child-theme-master’] = array(
‘single_template’ => get_template_directory() . ‘/oceanwp-single.php’,
‘replace_type’ => ‘string’,
‘replace’ => “get_template_part( ‘content’, ‘single’ )”,
);
return $themes;
}
add_filter( ‘add_theme_compatibility_template’, ‘add_theme_compatibility_2’ );could you please help me?
thanks
- The topic ‘Ocean WP: not showing custom fields’ is closed to new replies.